mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
whoops fix derp
This commit is contained in:
@@ -241,7 +241,8 @@ class Role {
|
|||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
setPosition(position) {
|
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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user