diff --git a/package.json b/package.json index 4139cb3..9887d4f 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "eslint": "^8.22.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.25.3", - "eslint-plugin-prettier": "^4.0.0", + "eslint-plugin-prettier": "^4.2.1", "husky": "^7.0.4", "is-ci": "^3.0.1", "jest": "^28.1.3", diff --git a/src/managers/ClientUserSettingManager.js b/src/managers/ClientUserSettingManager.js index cef420e..d6391b6 100644 --- a/src/managers/ClientUserSettingManager.js +++ b/src/managers/ClientUserSettingManager.js @@ -210,7 +210,7 @@ class ClientUserSettingManager extends BaseManager { mutual_guilds: data.friend_source_flags.all ? true : data.friend_source_flags.mutual_guilds, }; } - if ('guild_folders' in data) { + if ('guild_folders' in data && 'guild_positions' in data) { const data_ = data.guild_positions.map((guildId, i) => { // Find folder const folderIndex = data.guild_folders.findIndex(obj => obj.guild_ids.includes(guildId));