From c76632c905b5e7d5ec45325b7ffdb8950ea3fa5d Mon Sep 17 00:00:00 2001 From: GZod01 Date: Tue, 17 Dec 2024 11:40:12 +0100 Subject: [PATCH] k --- perso_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perso_commands.py b/perso_commands.py index b16833d..205a1d1 100644 --- a/perso_commands.py +++ b/perso_commands.py @@ -97,7 +97,7 @@ class PersoCommands(app_commands.Group): res = await self.bot.db.execute("SELECT nom_court FROM personnages WHERE uuid=? AND (guild_id=? OR guild_id IS NULL)",(interaction.user.id,interaction.guild.id)) rows = await res.fetchall() await res.close() - return [app_commands.OptionChoice(name=row["nom_court"],value=row["nom_court"]) for row in rows] + return [app_commands.Choice(name=row["nom_court"],value=row["nom_court"]) for row in rows] @app_commands.command(name="lister",description="Liste les personnages sur le serveur")