mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Update different system error in MessageEdit
This commit is contained in:
parent
43017c1522
commit
762158e857
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#nullable enable
|
||||
#nullable enable
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Myriad.Rest;
|
||||
|
|
@ -39,7 +39,7 @@ namespace PluralKit.Bot
|
|||
throw new PKSyntaxError("You need to include the message to edit in.");
|
||||
|
||||
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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue