this regex blocks markdown links.
\[[^\]]+\]\([^)]+\)
this regex matches % followed by two-digit hexadecimal codes, mostly resemblant of URL encoded characters.
%[0-9A-Fa-f]{2}
this regex matches any discord invite link, server url, or oauth2 authorization url, with support for both discord.com and discord.gg domains.
(?i)discord(?:app)?\.(?:com|gg)/(?:friend-)?invite/[a-z0-9-_]+|discord\.gg/[a-z0-9-_]+|discord(?:app)?\.com/(?:oauth2/authorize[\S]*|servers/[^/\s]+(?:/\S*)?)