GuildDelete Event somehow gets triggered when I restart my Bot
I have no idea whats happening but if my bot (docker container) restarts, this notification gets sent.
A lot of information is missing as you can see just the guildID is valid, it’s always the same guildid and the bot has left this server some time ago already.
What is going on?
7 Replies
FYI: this is what my guildDelete file looks like
GitHub
BirthdayyBotSapphire/guildDelete.ts at develop · BirthdayyBot/Birth...
Your easy-to-use, aesthetic and customizable Birthday Bot for any Discord Server - BirthdayyBotSapphire/guildDelete.ts at develop · BirthdayyBot/BirthdayyBotSapphire
This has nothing to do with Sapphire
It's discord dispatching that event and djs triggering that and sapphire just handling
It's a discord bug apparently though iirc
Is it a known bug or is this your assumption? (just for me to understand)
Solution
thats what I got on DiscordJS server
that's on you to resolve. Sapphire doesn't re-emit events, just binds event listeners to event emitters.
yea just a super wierd problem