1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-05 19:57:02 +00:00

gateway: Added the struct field of the Thread Members Update event.

This commit is contained in:
Neo 2022-03-09 22:33:58 +09:00 committed by diamondburned
parent 23f5771325
commit 87be6b09c1

View file

@ -205,17 +205,17 @@ type ThreadMemberUpdateEvent struct {
// current user was added to or removed from the thread.
type ThreadMembersUpdateEvent struct {
// ID is the id of the thread.
ID discord.ChannelID
ID discord.ChannelID `json:"id"`
// 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,
// capped at 50.
MemberCount int
MemberCount int `json:"member_count"`
// 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
// thread.
RemovedMemberIDs []discord.UserID
RemovedMemberIDs []discord.UserID `json:"removed_member_ids,omitempty"`
}
// GuildCreateEvent is a dispatch event.