mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Fix ban message delete days
This commit is contained in:
parent
db45d99d0c
commit
0f4983852e
1 changed files with 2 additions and 2 deletions
|
|
@ -682,9 +682,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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue