Skip to content

Automatically delete threads/forum posts from scam messages #1289

@SquidXTV

Description

@SquidXTV

About

It would be helpful if the scam blocker would also delete created threads on scam messages. This is helpful for channels that automatically create threads for new messages like server-suggestions. This should also automatically delete forum posts that are considered scam.

Considerations

The feature should make sure that this happens in the correct order. Both creating threads in specific channels and the scam blocker work on the same MessageReceivedEvent's and submit actions (like creating threads or deleting message) to the server. This can result in weird behavior and errors. Consider the following:

  1. ScamBlocker.java submits "delete message" to server
  2. SuggestionsUpDownVoter.java submits "create thread for message" to server

-> fails and returns error because message doesn't exist anymore: https://discord.com/channels/272761734820003841/1027495556748157038/1399856750244663407

Here are the specific event handlers for this example:

Note: There are more (forum) channels that need to be considered here.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions