Fixed an error

This commit is contained in:
Dan
2024-05-05 21:16:48 -04:00
parent de18257c3e
commit 5d3068ebc9

View File

@ -52,7 +52,7 @@ class Nessa(discord.Client):
await interaction.response.send_message("I've passed on your issue to the Chief!", ephemeral=True)
@self.tree.command(name="sync_commands", description="Force sync commands in a specific guild.")
@self.app_commands.check(is_owner_or_admin) # or @discord.app_commands.checks.is_owner()
@app_commands.check(is_owner_or_admin) # or @discord.app_commands.checks.is_owner()
async def sync_commands(interaction: discord.Interaction, guild_id: int):
if interaction.user.id == OWNER_ID:
guild = self.get_guild(guild_id)