Problems after having 2 shards
TypeError: Cannot read properties of undefined (reading 'channels')My bot now uses two shards, so it's also running the ready event twice. What's a fix for this?
TypeError: Cannot read properties of undefined (reading 'channels')let server = client.guilds.cache.get('server_id')
let category = server.channels.cache.find(c => c.id === 'category_id' && c.type == Discord.ChannelType.GuildCategory);server is definedserver