Correction d'une erreur de nom de variable dans la fonction say_message
This commit is contained in:
parent
bdf481a245
commit
cc0b18db7a
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue