fix(GuildBanManager): send reason in the headers instead of json body (#6800)

This commit is contained in:
Shubham Parihar
2021-10-09 18:32:39 +05:30
committed by GitHub
parent 26f927b9fe
commit bfb89de864

View File

@@ -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);