From 358131fb6fc9c2ccf47abb53bac633c1baefe1b6 Mon Sep 17 00:00:00 2001 From: Crawl Date: Sat, 1 Apr 2017 16:27:55 +0200 Subject: [PATCH] Fix _sortedRoles in Guild.js --- src/structures/Guild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 5c2f01fa9..ee1cc716b 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -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);