Correction d'une erreur de nom de variable dans la fonction say_message

This commit is contained in:
GZod01 2024-12-15 15:55:52 +01:00
parent bdf481a245
commit cc0b18db7a

View file

@ -45,7 +45,7 @@ async def say(interaction:discord.Interaction,id:str,message:str):
async def say_message(userid:int, guildid:int, shortname:str, message:str,channel:discord.TextChannel): async def say_message(userid:int, guildid:int, shortname:str, message:str,channel:discord.TextChannel):
res = await bot.db.execute("SELECT * FROM personnages WHERE uuid=? AND (guild_id=? OR guild_id IS NULL) AND nom_court=?",(userid,guildid,short_name)) res = await bot.db.execute("SELECT * FROM personnages WHERE uuid=? AND (guild_id=? OR guild_id IS NULL) AND nom_court=?",(userid,guildid,shortname))
row = await res.fetchone() row = await res.fetchone()
await res.close() await res.close()
if row is None: if row is None: