take an optional guild id in leave instead of a tuple
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7eaf6f1d0f
commit
266367dff5
1 file changed
+1
-1
@@ -53,7 +53,7 @@ class DevTools(commands.Cog):
|
|||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
@commands.bot_has_permissions(embed_links=True, add_reactions=True)
|
@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")
|
@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
|
Make bot leave a specified guild. If no guild is specified, leave the guild the command was sent from
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user