Fix for bulkDelete, acknowledge, createInvite and remove some redundant stuff (#1515)

This commit is contained in:
SpaceEEC
2017-05-21 22:04:57 +02:00
committed by Crawl
parent a0df2c5fa4
commit fce15ba33c
4 changed files with 6 additions and 6 deletions

View File

@@ -283,10 +283,10 @@ class GuildChannel extends Channel {
* kicked after 24 hours if they have not yet received a role
* @param {number} [options.maxAge=86400] How long the invite should last (in seconds, 0 for forever)
* @param {number} [options.maxUses=0] Maximum number of uses
* @param {string} [reason] Reason for creating this
* @param {string} [options.reason] Reason for creating this
* @returns {Promise<Invite>}
*/
createInvite({ temporary = false, maxAge = 86400, maxUses = 0 }, reason) {
createInvite({ temporary = false, maxAge = 86400, maxUses = 0, reason } = {}) {
return this.client.api.channels(this.id).invites.post({ data: {
temporary, max_age: maxAge, max_uses: maxUses,
}, reason })