Cache after restart

Hello ! With the guildDelete event, I have created a message that is sent as soon as a server has removed the bot from it. But at each restart of my bot (I made several test), a message is sent like if a guild removed my bot. Each time it is the same id of the guild, and no information is available (see screen) I checked and the bot does not have this guild. Would you have an idea of why I have that?
7 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
sicklinebro
sicklinebro2y ago
The guild is unavailable because the available property is false so the event is emitted.
Kirito.
Kirito.OP2y ago
Any solutions to avoid that ?
sicklinebro
sicklinebro2y ago
Not really
Kirito.
Kirito.OP2y ago
Okay thank you !
sicklinebro
sicklinebro2y ago
Maybe just don't send the message if the <Guild>.available properly is false.This happens on discord side so not really something you can fix
Kirito.
Kirito.OP2y ago
Yes you're right thanks 👍
Want results from more Discord servers?
Add your server