discord, gateway: Add IsPending to Member & SupplementalMember (#231)

This commit is contained in:
Germano Eichenberg 2021-06-17 17:40:57 -03:00 committed by GitHub
parent da7c6c6dba
commit 94090b92ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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,
}
}