fix reaction

This commit is contained in:
Mylloon 2021-08-22 03:58:18 +02:00
parent c4a16bfbd8
commit 8b06702556

View file

@ -45,8 +45,8 @@ class ReminderDiscord(commands.Cog, name="Reminder"):
sourceMessage = await channel.fetch_message(sourceMessage) # récupération message sourceMessage = await channel.fetch_message(sourceMessage) # récupération message
except: except:
sourceMessage = None # message a été supprimé sourceMessage = None # message a été supprimé
if sourceMessage != None: if sourceMessage != True:
await addReaction(sourceMessage.message, 0) # ajout réaction await addReaction(sourceMessage.message, 0) # ajout réaction
finalEmbed.set_footer(text=f"Message d'il y a {timedeltaToString(int(nowUTC()) - expired[3])}") finalEmbed.set_footer(text=f"Message d'il y a {timedeltaToString(int(nowUTC()) - expired[3])}")
links = "" links = ""
findedURLs = getURLsInString(reminder) findedURLs = getURLsInString(reminder)