refactor: call GuildBanManager#create() directly (#9263)

refactor: call bans.create directly

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Tetie
2023-04-02 00:09:01 +02:00
committed by GitHub
parent 907eb1b470
commit f340f3b1fd

View File

@@ -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);
}
/**