mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-16 18:50:13 +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 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();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue