mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(bot): check for null avatar in msg info
This commit is contained in:
parent
83f2d33c3d
commit
49ce00e675
1 changed files with 1 additions and 1 deletions
|
|
@ -844,7 +844,7 @@ public class EmbedService
|
||||||
};
|
};
|
||||||
|
|
||||||
var avatarURL = msg.Member?.AvatarFor(ctx).TryGetCleanCdnUrl();
|
var avatarURL = msg.Member?.AvatarFor(ctx).TryGetCleanCdnUrl();
|
||||||
MessageComponent header = avatarURL == "" ? authorData : new MessageComponent()
|
MessageComponent header = (avatarURL == "" || avatarURL == null) ? authorData : new MessageComponent()
|
||||||
{
|
{
|
||||||
Type = ComponentType.Section,
|
Type = ComponentType.Section,
|
||||||
Components = [authorData],
|
Components = [authorData],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue