Fix build errors from DSP update
This commit is contained in:
parent
34f4ff4e1b
commit
84d5adf907
@ -166,7 +166,7 @@ namespace PluralKit.Bot
|
|||||||
await ctx.Reply(embed: new DiscordEmbedBuilder()
|
await ctx.Reply(embed: new DiscordEmbedBuilder()
|
||||||
.WithTitle("Member color")
|
.WithTitle("Member color")
|
||||||
.WithColor(target.Color.ToDiscordColor().Value)
|
.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}**."
|
.WithDescription($"This member's color is **#{target.Color}**."
|
||||||
+ (ctx.System?.Id == target.System ? $" To clear it, type `pk;member {target.Hid} color -clear`." : ""))
|
+ (ctx.System?.Id == target.System ? $" To clear it, type `pk;member {target.Hid} color -clear`." : ""))
|
||||||
.Build());
|
.Build());
|
||||||
@ -183,7 +183,7 @@ namespace PluralKit.Bot
|
|||||||
await ctx.Reply(embed: new DiscordEmbedBuilder()
|
await ctx.Reply(embed: new DiscordEmbedBuilder()
|
||||||
.WithTitle($"{Emojis.Success} Member color changed.")
|
.WithTitle($"{Emojis.Success} Member color changed.")
|
||||||
.WithColor(target.Color.ToDiscordColor().Value)
|
.WithColor(target.Color.ToDiscordColor().Value)
|
||||||
.WithThumbnailUrl($"https://fakeimg.pl/256x256/{target.Color}/?text=%20")
|
.WithThumbnail($"https://fakeimg.pl/256x256/{target.Color}/?text=%20")
|
||||||
.Build());
|
.Build());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ namespace PluralKit.Bot {
|
|||||||
var eb = new DiscordEmbedBuilder()
|
var eb = new DiscordEmbedBuilder()
|
||||||
.WithColor(DiscordUtils.Gray)
|
.WithColor(DiscordUtils.Gray)
|
||||||
.WithTitle(system.Name ?? null)
|
.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))}");
|
.WithFooter($"System ID: {system.Hid} | Created on {DateTimeFormats.ZonedDateTimeFormat.Format(system.Created.InZone(system.Zone))}");
|
||||||
|
|
||||||
var latestSwitch = await _data.GetLatestSwitch(system.Id);
|
var latestSwitch = await _data.GetLatestSwitch(system.Id);
|
||||||
@ -73,7 +73,7 @@ namespace PluralKit.Bot {
|
|||||||
var name = member.NameFor(LookupContext.ByNonOwner);
|
var name = member.NameFor(LookupContext.ByNonOwner);
|
||||||
return new DiscordEmbedBuilder()
|
return new DiscordEmbedBuilder()
|
||||||
.WithAuthor($"#{channel.Name}: {name}", iconUrl: DiscordUtils.WorkaroundForUrlBug(member.AvatarFor(LookupContext.ByNonOwner)))
|
.WithAuthor($"#{channel.Name}: {name}", iconUrl: DiscordUtils.WorkaroundForUrlBug(member.AvatarFor(LookupContext.ByNonOwner)))
|
||||||
.WithThumbnailUrl(member.AvatarFor(LookupContext.ByNonOwner))
|
.WithThumbnail(member.AvatarFor(LookupContext.ByNonOwner))
|
||||||
.WithDescription(content?.NormalizeLineEndSpacing())
|
.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}")
|
.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())
|
.WithTimestamp(timestamp.ToDateTimeOffset())
|
||||||
@ -123,7 +123,7 @@ namespace PluralKit.Bot {
|
|||||||
description += "*(this member has a server-specific avatar set)*\n";
|
description += "*(this member has a server-specific avatar set)*\n";
|
||||||
if (description != "") eb.WithDescription(description);
|
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 (!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);
|
if (guild != null && guildDisplayName != null) eb.AddField($"Server Nickname (for {guild.Name})", guildDisplayName.Truncate(1024), true);
|
||||||
|
Loading…
Reference in New Issue
Block a user