From 87be6b09c1069fbd6f86467680b44bee8bcbc413 Mon Sep 17 00:00:00 2001 From: Neo <65282986+Neoration@users.noreply.github.com> Date: Wed, 9 Mar 2022 22:33:58 +0900 Subject: [PATCH] gateway: Added the struct field of the Thread Members Update event. --- gateway/events.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gateway/events.go b/gateway/events.go index 0c38cfc..2fc0a58 100644 --- a/gateway/events.go +++ b/gateway/events.go @@ -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.