mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
Simplify Role#setPosition
This commit is contained in:
@@ -241,8 +241,7 @@ class Role {
|
||||
* .catch(console.error);
|
||||
*/
|
||||
setPosition(position) {
|
||||
return new Promise(
|
||||
(resolve, reject) => this.guild.setRolePosition(this, position).then(() => resolve(this), reject));
|
||||
return this.guild.setRolePosition(this, position).then(() => this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user