diff --git a/discord/invite.go b/discord/invite.go index 37c96324..36bc7c74 100644 --- a/discord/invite.go +++ b/discord/invite.go @@ -18,6 +18,7 @@ const ( // Invite is a partial invite struct type Invite struct { + Type InviteType `json:"type"` Code string `json:"code"` Guild *InviteGuild `json:"guild"` Channel *InviteChannel `json:"channel"` @@ -35,6 +36,14 @@ func (i Invite) URL() string { return InviteURL(i.Code) } +type InviteType int + +const ( + InviteTypeGuild InviteType = iota + InviteTypeGroupDM + InviteTypeFriend +) + type ExtendedInvite struct { Invite Uses int `json:"uses"`