mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Check for avatar whitespace instead of null.
This may be relevant for #206, although unsure if this is actually a fix.
This commit is contained in:
parent
47fcfeca0f
commit
62cdb8a9b8
1 changed files with 2 additions and 1 deletions
|
|
@ -67,7 +67,8 @@ namespace PluralKit.Bot
|
|||
dwb.WithUsername(FixClyde(name).Truncate(80));
|
||||
dwb.WithContent(content);
|
||||
dwb.AddMentions(content.ParseAllMentions(allowEveryone, channel.Guild));
|
||||
if (avatarUrl != null) dwb.WithAvatarUrl(avatarUrl);
|
||||
if (!string.IsNullOrWhiteSpace(avatarUrl))
|
||||
dwb.WithAvatarUrl(avatarUrl);
|
||||
|
||||
var attachmentChunks = ChunkAttachmentsOrThrow(attachments, 8 * 1024 * 1024);
|
||||
if (attachmentChunks.Count > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue