mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +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)
|
.guilds(this.guild.id)
|
||||||
.bans(id)
|
.bans(id)
|
||||||
.put({
|
.put({
|
||||||
data: {
|
data: { delete_message_days: options.days },
|
||||||
reason: options.reason,
|
reason: options.reason,
|
||||||
delete_message_days: options.days,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
if (user instanceof GuildMember) return user;
|
if (user instanceof GuildMember) return user;
|
||||||
const _user = this.client.users.resolve(id);
|
const _user = this.client.users.resolve(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user