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 User17mo ago
Message Not Public
Sign In & Join Server To View
Deleted User
Deleted User17mo ago
The guild is unavailable because the available property is false so the event is emitted.
Kirito.
Kirito.17mo ago
Any solutions to avoid that ?
Deleted User
Deleted User17mo ago
Not really
Kirito.
Kirito.17mo ago
Okay thank you !
Deleted User
Deleted User17mo 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.17mo ago
Yes you're right thanks 👍