Webpack build for branch master: d9e5bdea19

This commit is contained in:
Travis CI 2017-05-05 21:24:30 +00:00
parent 774f80478d
commit b5e34c45de
2 changed files with 15 additions and 3 deletions

View file

@ -315,7 +315,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}` : ''}`,
};
@ -13387,6 +13387,12 @@ class Invite {
*/
this.code = data.code;
/**
* The approximate number of online members of the guild this invite is for
* @type {number}
*/
this.presenceCount = data.approximate_presence_count;
/**
* Whether or not this invite is temporary
* @type {boolean}
@ -13399,6 +13405,12 @@ class Invite {
*/
this.maxAge = data.max_age;
/**
* The approximate total number of members of the guild this invite is for
* @type {number}
*/
this.memberCount = data.approximate_member_count;
/**
* How many times this invite has been used
* @type {number}

File diff suppressed because one or more lines are too long