mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 21:42:05 +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);
|
||||
*/
|
||||
setPosition(position) {
|
||||
return new Promise(
|
||||
(resolve, reject) => this.guild.setRolePosition(this, position).then(() => resolve(this), reject));
|
||||
return this.guild.setRolePosition(this, position).then(() => this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue