From 3dd8daca3d60523be53f43749ebe96d033beb675 Mon Sep 17 00:00:00 2001 From: mavolin <48887425+mavolin@users.noreply.github.com> Date: Sun, 10 May 2020 22:11:11 +0200 Subject: [PATCH] Discord: Fix #32 --- discord/invite.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discord/invite.go b/discord/invite.go index 39aa977..c221333 100644 --- a/discord/invite.go +++ b/discord/invite.go @@ -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