Fix setting guild role positions (#751)

This commit is contained in:
Amish Shah
2016-10-26 14:19:36 +01:00
parent add52ce62d
commit 0c4a4023ce
6 changed files with 72 additions and 2 deletions

View File

@@ -230,7 +230,7 @@ class Role {
* .catch(console.error);
*/
setPosition(position) {
return this.client.rest.methods.updateGuildRole(this, { position });
return this.guild.setRolePosition(this, position);
}
/**