ajout réaction ✅ lors de l'ajout d'un reminder
This commit is contained in:
parent
a7b1defaad
commit
9e8045fe73
1 changed files with 2 additions and 0 deletions
|
@ -115,6 +115,8 @@ class ReminderDiscord(commands.Cog):
|
||||||
if fromSlash != True:
|
if fromSlash != True:
|
||||||
messageID = ctx.message.id
|
messageID = ctx.message.id
|
||||||
reminderID = Reminder().ajoutReminder(messageID, ctx.channel.id, extrarg, reminder, now, now + seconds, ctx.author.id, guildID)
|
reminderID = Reminder().ajoutReminder(messageID, ctx.channel.id, extrarg, reminder, now, now + seconds, ctx.author.id, guildID)
|
||||||
|
if fromSlash != True:
|
||||||
|
await ctx.message.add_reaction(emoji = '✅')
|
||||||
return await mySendHidden(ctx, fromSlash, f"Ton reminder **`#{reminderID[0][0]}`** est enrengistré, je te notifie {destination} dans {timedeltaToString(seconds)}{'' if seconds >= 3600 else ' (avec 1m de retard maximum)'}.")
|
return await mySendHidden(ctx, fromSlash, f"Ton reminder **`#{reminderID[0][0]}`** est enrengistré, je te notifie {destination} dans {timedeltaToString(seconds)}{'' if seconds >= 3600 else ' (avec 1m de retard maximum)'}.")
|
||||||
await mySendHidden(ctx, fromSlash, embed = embed)
|
await mySendHidden(ctx, fromSlash, embed = embed)
|
||||||
@_reminder.error
|
@_reminder.error
|
||||||
|
|
Reference in a new issue