fix: array/keyArray removed (#6245)

This commit is contained in:
1Computer1
2021-07-31 04:45:33 -04:00
committed by GitHub
parent 797727ab6e
commit bf221f2bef
4 changed files with 4 additions and 4 deletions

View File

@@ -159,7 +159,7 @@ class Role extends Base {
*/
get position() {
const sorted = this.guild._sortedRoles();
return sorted.array().indexOf(sorted.get(this.id));
return [...sorted.values()].indexOf(sorted.get(this.id));
}
/**