mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-07 12:38:05 +00:00
gateway: Added the struct field of the Thread Members Update event.
This commit is contained in:
parent
23f5771325
commit
87be6b09c1
|
@ -205,17 +205,17 @@ type ThreadMemberUpdateEvent struct {
|
||||||
// current user was added to or removed from the thread.
|
// current user was added to or removed from the thread.
|
||||||
type ThreadMembersUpdateEvent struct {
|
type ThreadMembersUpdateEvent struct {
|
||||||
// ID is the id of the thread.
|
// ID is the id of the thread.
|
||||||
ID discord.ChannelID
|
ID discord.ChannelID `json:"id"`
|
||||||
// GuildID is the id of the guild.
|
// GuildID is the id of the guild.
|
||||||
GuildID discord.GuildID
|
GuildID discord.GuildID `json:"guild_id"`
|
||||||
// MemberCount is the approximate number of members in the thread,
|
// MemberCount is the approximate number of members in the thread,
|
||||||
// capped at 50.
|
// capped at 50.
|
||||||
MemberCount int
|
MemberCount int `json:"member_count"`
|
||||||
// AddedMembers are the users who were added to the thread.
|
// AddedMembers are the users who were added to the thread.
|
||||||
AddedMembers []discord.ThreadMember
|
AddedMembers []discord.ThreadMember `json:"added_members,omitempty"`
|
||||||
// RemovedUserIDs are the ids of the users who were removed from the
|
// RemovedUserIDs are the ids of the users who were removed from the
|
||||||
// thread.
|
// thread.
|
||||||
RemovedMemberIDs []discord.UserID
|
RemovedMemberIDs []discord.UserID `json:"removed_member_ids,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// GuildCreateEvent is a dispatch event.
|
// GuildCreateEvent is a dispatch event.
|
||||||
|
|
Loading…
Reference in a new issue