From 2c4fbf249f4252964e88920e5c9cad23ebd6f790 Mon Sep 17 00:00:00 2001 From: spiral Date: Fri, 24 Dec 2021 19:19:50 -0500 Subject: [PATCH] fix: check own system in pk;s description, pk;s icon --- PluralKit.Bot/Commands/SystemEdit.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PluralKit.Bot/Commands/SystemEdit.cs b/PluralKit.Bot/Commands/SystemEdit.cs index 1637d013..b58cb533 100644 --- a/PluralKit.Bot/Commands/SystemEdit.cs +++ b/PluralKit.Bot/Commands/SystemEdit.cs @@ -81,7 +81,7 @@ public class SystemEdit if (isOwnSystem) noDescriptionSetMessage += " To set one, type `pk;s description `."; - ctx.CheckSystem(); + ctx.CheckSystem().CheckOwnSystem(target); if (ctx.MatchRaw()) { @@ -350,6 +350,8 @@ public class SystemEdit async Task ClearIcon() { + ctx.CheckOwnSystem(target); + await _repo.UpdateSystem(target.Id, new SystemPatch { AvatarUrl = null }); await ctx.Reply($"{Emojis.Success} System icon cleared."); }