Open KazWolfe opened 3 years ago
Implementation Details from Discord:
It is safe to assume that emotes will be consistent, but check for names as well. Check order should be by known reaction ID then by reaction name where easily distinct (actioned, not actioned, cant action). If a reaction is received that is not known, pass a generic message to the end user.
Timed message deletion should be handled through Redis, taking in the redis URL and creating a client from environment variable REDIS_URL
. Use from_url
method to retrieve URL where appropriate.
Soft block by #3 for the deletion feature (scheduling a oneshot).
Is your feature request related to a problem? Please describe.
As a moderator, I want to be made aware of when a report of mine has been actioned or requires additional steps to be taken by me (for example, a ticket needs to be opened to finish processing the report).
As a Discord employee, I want report channels to automatically clean themselves up after a report has been processed. After a standardized reaction has been added to a report, the report should delete itself in roughly 48 hours to keep the channel clean.
Describe the solution you'd like
When a reaction is added, users should receive a DM from the bot containing the following:
A DM shall only be sent upon the first reaction to a message. Any reactions not from Discord staff (including additional reactions) shall be deleted and not trigger further events such as the deletion timer.
After a reaction is added, a 48 hour timer should start to message deletion. Once the reaction on the message is 48 hours old, trigger a job to delete that message from the channel.
Additional context
Sample Embeds (note the missing emoji, this is a restriction of the test environment that this embed was generated from.)