1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-30 18:53:30 +00:00

Discord: Fix #32

This commit is contained in:
mavolin 2020-05-10 22:11:11 +02:00
parent a298160529
commit 3dd8daca3d
No known key found for this signature in database
GPG key ID: D8681218EDF216DF

View file

@ -4,6 +4,7 @@ type Invite struct {
Code string `json:"code"` Code string `json:"code"`
Channel Channel `json:"channel"` // partial Channel Channel `json:"channel"` // partial
Guild *Guild `json:"guild,omitempty"` // partial Guild *Guild `json:"guild,omitempty"` // partial
Inviter *User `json:"inviter,omitempty"`
ApproxMembers uint `json:"approximate_members_count,omitempty"` ApproxMembers uint `json:"approximate_members_count,omitempty"`
@ -12,6 +13,8 @@ type Invite struct {
// Only available if Target is // Only available if Target is
ApproxPresences uint `json:"approximate_presence_count,omitempty"` ApproxPresences uint `json:"approximate_presence_count,omitempty"`
InviteMetadata // only available when fetching ChannelInvites or GuildInvites
} }
type InviteUserType uint8 type InviteUserType uint8