Fix looking up private group icons

This commit is contained in:
Spectralitree 2021-05-24 21:05:27 +02:00
parent 0b91e71384
commit 5a649d7751

View File

@ -218,6 +218,8 @@ namespace PluralKit.Bot
async Task ShowIcon() async Task ShowIcon()
{ {
if (!target.IconPrivacy.CanAccess(ctx.LookupContextFor(target.System)))
throw Errors.LookupNotAllowed;
if ((target.Icon?.Trim() ?? "").Length > 0) if ((target.Icon?.Trim() ?? "").Length > 0)
{ {
var eb = new EmbedBuilder() var eb = new EmbedBuilder()