guildCreate event doesn't flag

Hi everyone, i attempted to make a simple whitelist system that checks if a servers ID is in a list of whitelisted servers however it didn't seem to work. All intents are enabled and When addingConsole.log to see if it was an issue in the code i found that the event never triggered. I'm relatively new to discord.js so any help would be much appreciated! If anything else is needed please let me know and i'll give you whatever is needed to try fix this bug. Thank you in advance
image.png
image.png
Was this page helpful?