#Figuring out how Discord's automod matchers works

1 messages · Page 1 of 1 (latest)

drowsy gorge
#

I think it was the fact that it was "(https://discord.gg/python)," that tripped this -- the match seems to extend till ")," in the regex search result.

#

Figuring out how Discord's automod matchers works

lean cliff
#
(?:discord\.com/invite|discordapp\.com/invite|discord\.gg)/[A-z0-9\-\_]+

I think this covers both the randomly generated invite urls and the allowed characters in vanity urls, as well as the alternative base urls for invites

drowsy gorge
#

Thanks @lean cliff, updated the rule to block the Discord links via that regex.

turbid atlas
#

I haven't had success in getting automod to consistently exempt our allowed invites. The allow functionality is quite limited.

#

I'd use regex negative lookaheads, but Discord uses a linear regex engine that doesn't support lookaheads at all (makes sense as a DoS mitigation).