mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(GuildBanManager): send reason in the headers instead of json body (#6800)
This commit is contained in:
@@ -144,10 +144,8 @@ class GuildBanManager extends CachedManager {
|
||||
.guilds(this.guild.id)
|
||||
.bans(id)
|
||||
.put({
|
||||
data: {
|
||||
reason: options.reason,
|
||||
delete_message_days: options.days,
|
||||
},
|
||||
data: { delete_message_days: options.days },
|
||||
reason: options.reason,
|
||||
});
|
||||
if (user instanceof GuildMember) return user;
|
||||
const _user = this.client.users.resolve(id);
|
||||
|
||||
Reference in New Issue
Block a user