From 266367dff5e6dba660ef704818ba9ff9607cd0c0 Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Fri, 23 Oct 2026 21:36:05 +0200 Subject: [PATCH] take an optional guild id in leave instead of a tuple Co-Authored-By: Claude Opus 5.5 --- bot/src/cogs/dev_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/src/cogs/dev_tools.py b/bot/src/cogs/dev_tools.py index 0bdce49..a51d61a 100644 --- a/bot/src/cogs/dev_tools.py +++ b/bot/src/cogs/dev_tools.py @@ -53,7 +53,7 @@ class DevTools(commands.Cog): @commands.is_owner() @commands.bot_has_permissions(embed_links=True, add_reactions=True) @commands.command(name="leave", description="Forlater en server. Om ingen er gitt, forlat der det ble sendt fra") - async def leave(self, ctx: commands.Context, *guild_id: int): + async def leave(self, ctx: commands.Context, guild_id: int | None = None): """ Make bot leave a specified guild. If no guild is specified, leave the guild the command was sent from