Fix _sortedRoles in Role.js

This commit is contained in:
Crawl
2017-04-01 16:28:19 +02:00
committed by GitHub
parent 358131fb6f
commit 7ffbbc7f07

View File

@@ -128,7 +128,7 @@ class Role {
* @type {number}
*/
get calculatedPosition() {
const sorted = this.guild._sortedRoles();
const sorted = this.guild._sortedRoles;
return sorted.array().indexOf(sorted.get(this.id));
}