Update different system error in MessageEdit

This commit is contained in:
spiral 2021-07-28 02:19:37 -04:00
parent 43017c1522
commit 762158e857
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -1,4 +1,4 @@
#nullable enable #nullable enable
using System.Threading.Tasks; using System.Threading.Tasks;
using Myriad.Rest; using Myriad.Rest;
@ -39,7 +39,7 @@ namespace PluralKit.Bot
throw new PKSyntaxError("You need to include the message to edit in."); throw new PKSyntaxError("You need to include the message to edit in.");
if (ctx.System.Id != msg.System.Id) if (ctx.System.Id != msg.System.Id)
throw new PKError("Can't edit a message sent from a different account."); throw new PKError("Can't edit a message sent by a different system.");
var newContent = ctx.RemainderOrNull(); var newContent = ctx.RemainderOrNull();