mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +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}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
get calculatedPosition() {
|
get calculatedPosition() {
|
||||||
const sorted = this.guild._sortedRoles();
|
const sorted = this.guild._sortedRoles;
|
||||||
return sorted.array().indexOf(sorted.get(this.id));
|
return sorted.array().indexOf(sorted.get(this.id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue