diff --git a/PluralKit.Bot/Commands/Groups.cs b/PluralKit.Bot/Commands/Groups.cs index 9ffb1900..d1c27ecb 100644 --- a/PluralKit.Bot/Commands/Groups.cs +++ b/PluralKit.Bot/Commands/Groups.cs @@ -153,6 +153,9 @@ namespace PluralKit.Bot } else if (!ctx.HasNext()) { + if (!target.DescriptionPrivacy.CanAccess(ctx.LookupContextFor(target.System))) + throw Errors.LookupNotAllowed; + if (target.Description == null) if (ctx.System?.Id == target.System) await ctx.Reply($"This group does not have a description set. To set one, type `pk;group {target.Reference()} description `."); @@ -218,6 +221,8 @@ namespace PluralKit.Bot async Task ShowIcon() { + if (!target.IconPrivacy.CanAccess(ctx.LookupContextFor(target.System))) + throw Errors.LookupNotAllowed; if ((target.Icon?.Trim() ?? "").Length > 0) { var eb = new EmbedBuilder()