Fix ban delete days

This commit is contained in:
Amish Shah
2017-05-01 15:07:02 +01:00
parent 47fbd18eda
commit 140839128a

View File

@@ -686,6 +686,7 @@ class Guild {
} else if (typeof options === 'string') {
options = { reason: options, 'delete-message-days': 0 };
}
if (options.days) options['delete-message-days'] = options.days;
return this.client.rest.methods.banGuildMember(this, user, options);
}