mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
whoops fix derp
This commit is contained in:
parent
27e77d3839
commit
e2932c05f2
1 changed files with 2 additions and 1 deletions
|
|
@ -241,7 +241,8 @@ class Role {
|
|||
* .catch(console.error);
|
||||
*/
|
||||
setPosition(position) {
|
||||
return new Promise((resolve, reject) => this.guild.setRolePosition(this, position).then(resolve, reject));
|
||||
return new Promise(
|
||||
(resolve, reject) => this.guild.setRolePosition(this, position).then(() => resolve(this), reject));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue