From 6dc93a0184c1877298177fd9831f6e22078576d1 Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Sun, 27 Nov 2016 20:03:44 -0500 Subject: [PATCH] Simplify Role#setPosition --- src/structures/Role.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/structures/Role.js b/src/structures/Role.js index 7846c6cc5..fe4fd85e0 100644 --- a/src/structures/Role.js +++ b/src/structures/Role.js @@ -241,8 +241,7 @@ class Role { * .catch(console.error); */ setPosition(position) { - return new Promise( - (resolve, reject) => this.guild.setRolePosition(this, position).then(() => resolve(this), reject)); + return this.guild.setRolePosition(this, position).then(() => this); } /**