added Invite#presenceCount and Invite#memberCount (#1460)

* added Invite#online and Invite#memberCount

* requested change
This commit is contained in:
SpaceEEC
2017-05-05 23:24:02 +02:00
committed by Crawl
parent a685d24504
commit d9e5bdea19
2 changed files with 13 additions and 1 deletions

View File

@@ -243,7 +243,7 @@ const Endpoints = exports.Endpoints = {
toString: () => '/gateway',
bot: '/gateway/bot',
},
Invite: inviteID => `/invite/${inviteID}`,
Invite: inviteID => `/invite/${inviteID}?with_counts=true`,
inviteLink: id => `https://discord.gg/${id}`,
Webhook: (webhookID, token) => `/webhooks/${webhookID}${token ? `/${token}` : ''}`,
};