DiscordSRV / Staff-Chat

A staff-chat plugin that hooks into DiscordSRV
MIT License
29 stars 11 forks source link

Allow other plugins to modify/cancel messages from Discord #6

Closed RadBuilder closed 4 years ago

RadBuilder commented 4 years ago

Switched listener to listen on PostProcessEvent instead of PreProcessEvent, which will allow other plugins to modify or cancel messages sent from Discord.

RezzedUp commented 4 years ago

Unfortunately, the PostProcessEvent doesn't offer the same capabilities as the PreProcessEvent.

For starters, using the 'processed message' string from the PostProcessEvent results in redundant prefixes:

The PostProcessEvent also does not cancel messages with images: Staff chat channel on discord In-game