mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Fix _sortedRoles in Role.js
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user