mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 16:52:16 +00:00
Fix ban delete days
This commit is contained in:
parent
47fbd18eda
commit
140839128a
1 changed files with 1 additions and 0 deletions
|
|
@ -686,6 +686,7 @@ class Guild {
|
||||||
} else if (typeof options === 'string') {
|
} else if (typeof options === 'string') {
|
||||||
options = { reason: options, 'delete-message-days': 0 };
|
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);
|
return this.client.rest.methods.banGuildMember(this, user, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue