From cffc98475dac121cc6f8e46554dd00d787b644a5 Mon Sep 17 00:00:00 2001 From: GZod01 Date: Mon, 16 Dec 2024 13:28:30 +0100 Subject: [PATCH] =?UTF-8?q?Modifie=20la=20v=C3=A9rification=20des=20permis?= =?UTF-8?q?sions=20dans=20la=20commande=20lister=20pour=20utiliser=20une?= =?UTF-8?q?=20liste=20d'IDs=20de=20propri=C3=A9taires.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- perso_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perso_commands.py b/perso_commands.py index 98d7891..732031f 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,output_hidden:bool=False): #admin - if not interaction.user.id == self.bot.owner_id: + if not interaction.user.id in self.bot.owner_ids: await interaction.response.send_message("Vous n'avez pas la permission d'exécuter cette commande",ephemeral=True) return print("perso list")