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-01 22:09:01 +00:00
committed by GitHub
co-authored by kodiakhq[bot]
parent 907eb1b470
commit f340f3b1fd
@@ -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);
}
/**