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