From 2f2f9ab5683a61901ec61869f71fc9b4c41fcb99 Mon Sep 17 00:00:00 2001 From: Dan Date: Sat, 4 May 2024 21:15:07 -0400 Subject: [PATCH] Fixed the shutdown command --- dolly/dolly.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dolly/dolly.py b/dolly/dolly.py index 85972a9..ad5cff1 100644 --- a/dolly/dolly.py +++ b/dolly/dolly.py @@ -20,7 +20,7 @@ class Dolly(discord.Client): await self.tree.sync(guild=discord.Object(id=GUILD_ID)) # Adding a guild-specific shutdown command - @self.tree.command(name="shutdown", description="Shut down the bot", guild_ids=[GUILD_ID]) + @self.tree.command(name="shutdown", description="Shut down the bot", guild=discord.Object(id=GUILD_ID)) async def shutdown(interaction: discord.Interaction): if interaction.user.id == OWNER_ID: await interaction.response.send_message("Shutting down...") @@ -32,4 +32,4 @@ class Dolly(discord.Client): print(f"Logged on as {self.user}!") # Ensuring commands are only available in specified guild self.tree.copy_global_to(guild=discord.Object(id=GUILD_ID)) - await self.tree.sync(guild=discord.Object(id=GUILD_ID)) + await self.tree.sync(guild=discord.Object(id=GUILD_ID)) \ No newline at end of file