handle unknown guild ids in leave
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e95c8f8113
commit
ea2dc6a9de
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user