From 27e77d3839c25bb9745f03d405b122e323b1c5bd Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Sat, 26 Nov 2016 22:42:33 +0000 Subject: [PATCH] Fix Role.setPosition not returning Role (addresses #902) --- src/structures/Role.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Role.js b/src/structures/Role.js index 164996cb3..44c962f3d 100644 --- a/src/structures/Role.js +++ b/src/structures/Role.js @@ -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)); } /**