Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit 5558f00

Browse files
author
jonas747
committed
fix deserializiging some thread events
1 parent 0fa374c commit 5558f00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

events.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,8 @@ type ThreadMemberUpdate struct {
493493

494494
// some user(s) were added to or removed from a thread
495495
type ThreadMembersUpdate struct {
496-
ID int64 `json:"id"` // snowflake the id of the thread
497-
GuildID int64 `json:"guild_id"` // snowflake the id of the guild
496+
ID int64 `json:"id,string"` // snowflake the id of the thread
497+
GuildID int64 `json:"guild_id,string"` // snowflake the id of the guild
498498
MemberCount int `json:"member_count"` // integer the approximate number of members in the thread, capped at 50
499499
AddedMembers []*ThreadMember `json:"added_members"` // array of thread member objects the users who were added to the thread
500500
RemovedMembers IDSlice `json:"removed_member_ids"` // array of snowflakes the id of the users who were removed from the thread

0 commit comments

Comments
 (0)