Filter everyone/here pings if the proxy sender doesn't have permission

This commit is contained in:
Ske
2019-07-28 15:38:28 +02:00
parent 2217b87afe
commit 59dbc5368b
2 changed files with 18 additions and 2 deletions

View File

@@ -82,6 +82,9 @@ namespace PluralKit.Bot
public static string Sanitize(this string input) =>
Regex.Replace(Regex.Replace(input, "<@[!&]?(\\d{17,19})>", "<\\@$1>"), "@(everyone|here)", "@\u200B$1");
public static string SanitizeEveryone(this string input) =>
Regex.Replace(input, "@(everyone|here)", "@\u200B$1");
public static async Task<ChannelPermissions> PermissionsIn(this IChannel channel)
{