why does this work in dev but not production

client.guilds.cache.get(CONFIG.guildId).channels.cache.get(CONFIG.siteLogChannelId).send('Bot started');


on my dev environment it works fine. then I deploy it, and it crashes the whole site because .channels is undefined.
Was this page helpful?