Fix Role.setPosition not returning Role (addresses #902)

This commit is contained in:
Amish Shah
2016-11-26 22:42:33 +00:00
parent 4ae1f63a97
commit 27e77d3839

View File

@@ -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));
} }
/** /**