I wish to make the bot doing a REST request after being kicked out from its guild.
Would onGuildMemberRemove
work on a removal, the bot being the subject of it?
The event you're looking for is GuildLeaveEvent
. The event fires whenever the bot is removed or leaves a guild.