LorittaBot / Loritta

💁 A multipurpose, multilanguage, customizable, modular, and very cute bot for Discord! ~Making your server more awesome~
https://loritta.website/
GNU Affero General Public License v3.0
670 stars 170 forks source link

Invalidate previous pending messages on the daily tax when new warnings are issued #2521

Open MrPowerGamerBR opened 2 years ago

MrPowerGamerBR commented 2 years ago

Because if they aren't invalidated, pending messages that are marked as SKIPPED_VIA_DIRECT_MESSAGE or FAILED_TO_SEND_VIA_DIRECT_MESSAGE will be kept and she will notify the user multiple times when using a slash command.

Maybe what we could do is create a table to store the "current warning group ID", and always retrieve warnings from the last group ID.