From e2932c05f27bac0a82777bf8cdf7e7c55949c79a Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Sat, 26 Nov 2016 22:43:41 +0000 Subject: [PATCH] whoops fix derp --- src/structures/Role.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/structures/Role.js b/src/structures/Role.js index 44c962f3d..7846c6cc5 100644 --- a/src/structures/Role.js +++ b/src/structures/Role.js @@ -241,7 +241,8 @@ class Role { * .catch(console.error); */ 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)); } /**