Fixed the shutdown command

This commit is contained in:
Dan
2024-05-04 21:15:07 -04:00
parent fe52fec2f8
commit 2f2f9ab568

View File

@ -20,7 +20,7 @@ class Dolly(discord.Client):
await self.tree.sync(guild=discord.Object(id=GUILD_ID)) await self.tree.sync(guild=discord.Object(id=GUILD_ID))
# Adding a guild-specific shutdown command # 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): async def shutdown(interaction: discord.Interaction):
if interaction.user.id == OWNER_ID: if interaction.user.id == OWNER_ID:
await interaction.response.send_message("Shutting down...") await interaction.response.send_message("Shutting down...")