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