diff --git a/src/client/websocket/handlers/READY.js b/src/client/websocket/handlers/READY.js index 1bb50ad..aa41413 100644 --- a/src/client/websocket/handlers/READY.js +++ b/src/client/websocket/handlers/READY.js @@ -140,7 +140,7 @@ module.exports = async (client, { d: data }, shard) => { client.guilds._add(guild); } - for (const gSetting of data.user_guild_settings) { + for (const gSetting of Array.isArray(data.user_guild_settings) ? data.user_guild_settings : []) { const guild = client.guilds.cache.get(gSetting.guild_id); if (guild) guild.settings._patch(gSetting); }