handle unknown guild ids in leave

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
leanderandClaude Opus 5.5 committed 2026-11-03 01:37:56 +01:00
1 parent e95c8f8113
commit ea2dc6a9de
1 file changed
+1 -1
+1 -1
View File
@@ -70,7 +70,7 @@ class DevTools(commands.Cog):
# Get guild
try:
guild = await self.bot.fetch_guild(guild_id)
except discord.errors.Forbidden:
except (discord.errors.Forbidden, discord.errors.NotFound):
embed = embed_templates.error_warning("Bot is not a member of this guild")
return await ctx.reply(embed=embed)