mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Fix _sortedRoles in Guild.js
This commit is contained in:
@@ -921,7 +921,7 @@ class Guild {
|
||||
position = Number(position);
|
||||
if (isNaN(position)) return Promise.reject(new Error('Supplied position is not a number.'));
|
||||
|
||||
let updatedRoles = this._sortedRoles().array();
|
||||
let updatedRoles = this._sortedRoles.array();
|
||||
|
||||
Util.moveElementInArray(updatedRoles, role, position, relative);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user