Fixed an error
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user