Simplify Role#setPosition

This commit is contained in:
Schuyler Cebulskie
2016-11-27 20:03:44 -05:00
parent 769ea5b50f
commit 6dc93a0184

View File

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