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