diff --git a/discord/guild.go b/discord/guild.go index 452414e..6b99f9a 100644 --- a/discord/guild.go +++ b/discord/guild.go @@ -338,6 +338,9 @@ type Member struct { Deaf bool `json:"deaf"` // Mute specifies whether the user is muted in voice channels. Mute bool `json:"mute"` + + // IsPending specifies whether the user has not yet passed the guild's Membership Screening requirements + IsPending bool `json:"pending"` } // Mention returns the mention of the role. diff --git a/gateway/ready.go b/gateway/ready.go index af00313..0619786 100644 --- a/gateway/ready.go +++ b/gateway/ready.go @@ -196,7 +196,7 @@ type ( RoleIDs []discord.RoleID `json:"roles"` GuildID discord.GuildID `json:"guild_id,omitempty"` - IsPending bool `json:"is_pending,omitempty"` + IsPending bool `json:"pending,omitempty"` HoistedRole discord.RoleID `json:"hoisted_role"` Mute bool `json:"mute"` @@ -243,6 +243,7 @@ func ConvertSupplementalMember(sm SupplementalMember) discord.Member { BoostedSince: sm.BoostedSince, Deaf: sm.Deaf, Mute: sm.Mute, + IsPending: sm.IsPending, } }