mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
Fix Role.setPosition not returning Role (addresses #902)
This commit is contained in:
@@ -241,7 +241,7 @@ class Role {
|
|||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
setPosition(position) {
|
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