From 41e760c308b4d6b8ce0ef74b51ce7e51bc97ba09 Mon Sep 17 00:00:00 2001 From: Noikoio Date: Thu, 12 Dec 2019 23:08:21 -0800 Subject: [PATCH] Fix RoleMention regex --- RegexBot/Module/ModCommands/Commands/_CommandBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RegexBot/Module/ModCommands/Commands/_CommandBase.cs b/RegexBot/Module/ModCommands/Commands/_CommandBase.cs index 4527db2..23bf62e 100644 --- a/RegexBot/Module/ModCommands/Commands/_CommandBase.cs +++ b/RegexBot/Module/ModCommands/Commands/_CommandBase.cs @@ -95,7 +95,7 @@ namespace Noikoio.RegexBot.Module.ModCommands.Commands #region Helper methods and common values protected static readonly Regex UserMention = new Regex(@"<@!?(?\d+)>", RegexOptions.Compiled); - protected static readonly Regex RoleMention = new Regex(@"<@&(?\d+)>", RegexOptions.Compiled); + protected static readonly Regex RoleMention = new Regex(@"<@?&(?\d+)>", RegexOptions.Compiled); protected static readonly Regex ChannelMention = new Regex(@"<#(?\d+)>", RegexOptions.Compiled); protected static readonly Regex EmojiMatch = new Regex(@"<:(?[A-Za-z0-9_]{2,}):(?\d+)>", RegexOptions.Compiled); protected const string Fail403 = "I do not have the required permissions to perform that action.";