mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Fix _sortedRoles in Role.js
This commit is contained in:
parent
358131fb6f
commit
7ffbbc7f07
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue