mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Fix ban delete days
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user