Message Filtering: "USERNAME" target not working
Hey, I'm not sure whether I'm misunderstanding how this option is supposed to work (ignoring messages/events from a specific username?) or if it's maybe bugged.
I used the online config editor and tried a variety of different options (including "CONTAINS" instead) but none of the messages/events were ignored when the type is set to "USERNAME". It works fine with the "CHAT" type for filtering based on message content.
#Configure message/username filtering for discord messages
[filtering]
#Enable the filter system
enabled = true
#Ignore messages sent from certain threads. Enable debug logging to see what thread the message is from
ignoredThreads = []
#List of entries to process
[[filtering.entries]]
search = "aelobin"
target = "USERNAME"
replace = ""
searchMode = "MATCHES"
action = "IGNORE"
appliesTo = "DISCORD"
ignoreConsole = false
Using v3.3.2 on 1.20.1
Thanks
Hey.
I see this was reported on the wrong repo (which we don't monitor, or have discord webhooks for).
Username filtering is a tricky thing, especially from discord side.
If you are using access control, with the linkedNames flag enabled, the username will be the minecraft name, instead of the discord name.
Other times, the "username" could also be the discord nickname. So you have to test various combinations of it to find which one works