Webpack build for branch master: 0f4983852e

This commit is contained in:
Travis CI 2017-05-01 14:00:19 +00:00
parent 23734eb806
commit 68f655f15d
2 changed files with 3 additions and 3 deletions

View file

@ -8253,9 +8253,9 @@ class Guild {
*/
ban(user, options = {}) {
if (typeof options === 'number') {
options = { reason: null, days: options };
options = { reason: null, 'delete-message-days': options };
} else if (typeof options === 'string') {
options = { reason: options, days: 0 };
options = { reason: options, 'delete-message-days': 0 };
}
return this.client.rest.methods.banGuildMember(this, user, options);
}

File diff suppressed because one or more lines are too long