mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-03-21 17:39:25 +00:00
discord, gateway: Add IsPending to Member & SupplementalMember (#231)
This commit is contained in:
parent
da7c6c6dba
commit
94090b92ff
|
@ -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.
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue