mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
Fix Role.setPosition not returning Role (addresses #902)
This commit is contained in:
parent
4ae1f63a97
commit
27e77d3839
1 changed files with 1 additions and 1 deletions
|
|
@ -241,7 +241,7 @@ class Role {
|
|||
* .catch(console.error);
|
||||
*/
|
||||
setPosition(position) {
|
||||
return this.guild.setRolePosition(this, position);
|
||||
return new Promise((resolve, reject) => this.guild.setRolePosition(this, position).then(resolve, reject));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue