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