fix(bot): check for null avatar in msg info

This commit is contained in:
asleepyskye 2025-10-24 19:55:53 -04:00
parent 83f2d33c3d
commit 49ce00e675

View file

@ -844,7 +844,7 @@ public class EmbedService
};
var avatarURL = msg.Member?.AvatarFor(ctx).TryGetCleanCdnUrl();
MessageComponent header = avatarURL == "" ? authorData : new MessageComponent()
MessageComponent header = (avatarURL == "" || avatarURL == null) ? authorData : new MessageComponent()
{
Type = ComponentType.Section,
Components = [authorData],