Skip to content

Commit

Permalink
refactor: call GuildBanManager#create() directly (#9263)
Browse files Browse the repository at this point in the history
refactor: call bans.create directly

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
TetieWasTaken and kodiakhq[bot] committed Apr 1, 2023
1 parent 907eb1b commit f340f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/GuildMember.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ class GuildMember extends Base {
* .catch(console.error);
*/
ban(options) {
return this.guild.members.ban(this, options);
return this.guild.bans.create(this, options);
}

/**
Expand Down

0 comments on commit f340f3b

Please sign in to comment.