Skip to content

Commit

Permalink
fix(GuildBanManager): send reason in the headers instead of json body (
Browse files Browse the repository at this point in the history
  • Loading branch information
iShibi committed Oct 9, 2021
1 parent 26f927b commit bfb89de
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/managers/GuildBanManager.js
Expand Up @@ -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);
Expand Down

0 comments on commit bfb89de

Please sign in to comment.