diff --git a/PluralKit.Bot/Commands/MemberEdit.cs b/PluralKit.Bot/Commands/MemberEdit.cs index fb8d52b0..6f3aecdd 100644 --- a/PluralKit.Bot/Commands/MemberEdit.cs +++ b/PluralKit.Bot/Commands/MemberEdit.cs @@ -166,7 +166,7 @@ namespace PluralKit.Bot await ctx.Reply(embed: new DiscordEmbedBuilder() .WithTitle("Member color") .WithColor(target.Color.ToDiscordColor().Value) - .WithThumbnailUrl($"https://fakeimg.pl/256x256/{target.Color}/?text=%20") + .WithThumbnail($"https://fakeimg.pl/256x256/{target.Color}/?text=%20") .WithDescription($"This member's color is **#{target.Color}**." + (ctx.System?.Id == target.System ? $" To clear it, type `pk;member {target.Hid} color -clear`." : "")) .Build()); @@ -183,7 +183,7 @@ namespace PluralKit.Bot await ctx.Reply(embed: new DiscordEmbedBuilder() .WithTitle($"{Emojis.Success} Member color changed.") .WithColor(target.Color.ToDiscordColor().Value) - .WithThumbnailUrl($"https://fakeimg.pl/256x256/{target.Color}/?text=%20") + .WithThumbnail($"https://fakeimg.pl/256x256/{target.Color}/?text=%20") .Build()); } } diff --git a/PluralKit.Bot/Services/EmbedService.cs b/PluralKit.Bot/Services/EmbedService.cs index 4443a4f5..dd964411 100644 --- a/PluralKit.Bot/Services/EmbedService.cs +++ b/PluralKit.Bot/Services/EmbedService.cs @@ -38,7 +38,7 @@ namespace PluralKit.Bot { var eb = new DiscordEmbedBuilder() .WithColor(DiscordUtils.Gray) .WithTitle(system.Name ?? null) - .WithThumbnailUrl(system.AvatarUrl) + .WithThumbnail(system.AvatarUrl) .WithFooter($"System ID: {system.Hid} | Created on {DateTimeFormats.ZonedDateTimeFormat.Format(system.Created.InZone(system.Zone))}"); var latestSwitch = await _data.GetLatestSwitch(system.Id); @@ -73,7 +73,7 @@ namespace PluralKit.Bot { var name = member.NameFor(LookupContext.ByNonOwner); return new DiscordEmbedBuilder() .WithAuthor($"#{channel.Name}: {name}", iconUrl: DiscordUtils.WorkaroundForUrlBug(member.AvatarFor(LookupContext.ByNonOwner))) - .WithThumbnailUrl(member.AvatarFor(LookupContext.ByNonOwner)) + .WithThumbnail(member.AvatarFor(LookupContext.ByNonOwner)) .WithDescription(content?.NormalizeLineEndSpacing()) .WithFooter($"System ID: {system.Hid} | Member ID: {member.Hid} | Sender: {sender.Username}#{sender.Discriminator} ({sender.Id}) | Message ID: {messageId} | Original Message ID: {originalMsgId}") .WithTimestamp(timestamp.ToDateTimeOffset()) @@ -123,7 +123,7 @@ namespace PluralKit.Bot { description += "*(this member has a server-specific avatar set)*\n"; if (description != "") eb.WithDescription(description); - if (avatar != null) eb.WithThumbnailUrl(avatar); + if (avatar != null) eb.WithThumbnail(avatar); if (!member.DisplayName.EmptyOrNull() && member.NamePrivacy.CanAccess(ctx)) eb.AddField("Display Name", member.DisplayName.Truncate(1024), true); if (guild != null && guildDisplayName != null) eb.AddField($"Server Nickname (for {guild.Name})", guildDisplayName.Truncate(1024), true);