-
-
Notifications
You must be signed in to change notification settings - Fork 93
Description
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:
ScamBlocker.java
submits "delete message" to serverSuggestionsUpDownVoter.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.