Fix looking up private group icons
This commit is contained in:
parent
0b91e71384
commit
5a649d7751
@ -218,6 +218,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()
|
||||
|
Loading…
Reference in New Issue
Block a user