mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Fix Role.setPosition not returning Role (addresses #902)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user