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