From f42b6ab3d03004c50ac0ca0be279da1a4ddb8768 Mon Sep 17 00:00:00 2001 From: GZod01 Date: Mon, 16 Dec 2024 13:25:29 +0100 Subject: [PATCH] a --- perso_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perso_commands.py b/perso_commands.py index 12520fe..b3a3e10 100644 --- a/perso_commands.py +++ b/perso_commands.py @@ -89,7 +89,7 @@ class PersoCommands(app_commands.Group): @app_commands.command(name="lister",description="Liste tous les personnages") async def list_characters(self,interaction:discord.Interaction): #admin - if not interaction.guild.members[interaction.user.id].guild_permissions.administrator: + if not interaction.user.id == self.bot.owner_id: await interaction.response.send_message("Vous n'avez pas la permission d'exécuter cette commande",ephemeral=True) return print("perso list")