mirror of
https://github.com/danbulant/discord.js
synced 2026-07-09 13:10:42 +00:00
Simplify Role#setPosition
This commit is contained in:
parent
769ea5b50f
commit
6dc93a0184
1 changed files with 1 additions and 2 deletions
|
|
@ -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));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue