-
Notifications
You must be signed in to change notification settings - Fork 82
Description
Describe the Feature
During recent server issues people start spamming all kinds of messages in #main that get bridged to Discord, an option to delete debridged user's recent messages is wanted.
Expected Behavior
No response
Screenshots
No response
Additional context
There are a few ways to do this, perhaps the simplest would be for the Discord bridge bot/bridge server to subscribe to de-bridged actions in the global_moderation channel and then delete the last X messages from that user.
A more complex solution could offer the option to specify the number of deleted messages when applying the de-bridging action on an user.
In any case, the challenging part is figuring out which messages to delete because Discord message IDs of sent messages aren't saved in DB. The room messages are saved in the teiserver_room_messages table so that one could be extended with a discord_message_id field of the bridged message.