From f618bc24039594ea7732c121d060f77207b95aa5 Mon Sep 17 00:00:00 2001 From: Ske Date: Fri, 7 Feb 2020 22:24:03 +0100 Subject: [PATCH] Fix pk;msg with message link --- PluralKit.Bot/Commands/Misc.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Commands/Misc.cs b/PluralKit.Bot/Commands/Misc.cs index 79a6fea8..4ab5fcbe 100644 --- a/PluralKit.Bot/Commands/Misc.cs +++ b/PluralKit.Bot/Commands/Misc.cs @@ -182,7 +182,7 @@ namespace PluralKit.Bot.Commands { ulong messageId; if (ulong.TryParse(word, out var id)) messageId = id; - else if (Regex.Match(word, "https://discordapp.com/channels/\\d+/(\\d+)") is Match match && match.Success) + else if (Regex.Match(word, "https://discordapp.com/channels/\\d+/\\d+/(\\d+)") is Match match && match.Success) messageId = ulong.Parse(match.Groups[1].Value); else throw new PKSyntaxError($"Could not parse `{word}` as a message ID or link.");