mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Fix looking up private group icons
This commit is contained in:
parent
0b91e71384
commit
5a649d7751
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue