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")