Apply filter to attachments
JinjaFormbi opened this issue ยท 3 comments
Why?
as seen in issue #1403
"Possible to config certain messages to default ones / remove long discord Picture image link messages inside Minecraft"
Images get send as long text messages.
What and How?
Adding uploaded files to the DiscordChatChannelDiscordFilters
Are there alternatives?
Make a specific function that can filter discord files
Checks
- I have used the search at least once to check if my idea has already been suggested and perhaps already implemented.
Anything else
thanks to chrissamael for the specification of the problem
Should be fixed on latest snapshot builds. https://snapshot.discordsrv.com/
Currently if the solution in #1403 is applied the link will be send regardless if the image is uploaded by the poster. the filter dies apply if the poster sends the link to the image.
Both variants of posting are indistinguishable for a user on the discord side on the first glance.
This appears to still be a problem. My hunch is that it might be due to the text being sent in a separate "message" which is not the text of the message a Discord user sends.
It might depend on HOW the link is sent - my test was to copy an image in Windows and paste it while composing a Discord message, which triggers some kind of dynamic upload. I have applied a regex filter to completely wipe out any line that contains "http" and yet file URLs are still sent to chat. See screenshots