Error fetching guild on client ready event
I have a function that will check for all guilds that have member count enabled
However this specific group of code seems to always fail to fetch the guild, even tho when evaluating the same code it succeeds.
This specific line
This function is called from the ClientReady event.
However this specific group of code seems to always fail to fetch the guild, even tho when evaluating the same code it succeeds.
This specific line
const guild = await client.guilds.fetch(g.guild).catch(() => {}); always returns void or undefined. Even tho the provided guild ID is valid.This function is called from the ClientReady event.