1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-09 16:35:12 +00:00

Merge pull request #33 from mavolin/32-invite

This commit is contained in:
diamondburned 2020-05-10 13:14:27 -07:00 committed by GitHub
commit 06d3ebd3f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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