This commit is contained in:
GZod01 2024-12-17 11:40:12 +01:00
parent a35f9919ef
commit c76632c905

View file

@ -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)) 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() rows = await res.fetchall()
await res.close() 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") @app_commands.command(name="lister",description="Liste les personnages sur le serveur")