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."); }