a
This commit is contained in:
parent
eee93e3ef5
commit
9de35f7103
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ class PersoCommands(app_commands.Group):
|
||||||
await interaction.response.send_message("Personnage non trouvé",ephemeral=True)
|
await interaction.response.send_message("Personnage non trouvé",ephemeral=True)
|
||||||
return
|
return
|
||||||
embed = await perso_embed(self.bot,row)
|
embed = await perso_embed(self.bot,row)
|
||||||
await interaction.response.send_message(f"Affichage de {row["nom_complet"]}({row["nom_court"]})",embed=embed)
|
await interaction.response.send_message(f"Affichage de {row['nom_complet']}({row['nom_court']})",embed=embed)
|
||||||
@show_character.autocomplete(name="short_name")
|
@show_character.autocomplete(name="short_name")
|
||||||
async def autocomplete_short_name(self,interaction:discord.Interaction,current:str):
|
async def autocomplete_short_name(self,interaction:discord.Interaction,current:str):
|
||||||
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))
|
||||||
|
|
Loading…
Reference in a new issue