mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 08:10:10 +00:00
Port some more commands, mostly for embeds
This commit is contained in:
parent
9d919d687b
commit
2e0c30eb5d
13 changed files with 140 additions and 135 deletions
|
|
@ -2,8 +2,6 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using DSharpPlus.Entities;
|
||||
|
||||
using Myriad.Builders;
|
||||
|
||||
using PluralKit.Core;
|
||||
|
|
@ -60,11 +58,11 @@ namespace PluralKit.Bot
|
|||
var field = location == AvatarLocation.Server ? $"server avatar (for {ctx.GuildNew.Name})" : "avatar";
|
||||
var cmd = location == AvatarLocation.Server ? "serveravatar" : "avatar";
|
||||
|
||||
var eb = new DiscordEmbedBuilder()
|
||||
.WithTitle($"{target.NameFor(ctx)}'s {field}")
|
||||
.WithImageUrl(currentValue);
|
||||
var eb = new EmbedBuilder()
|
||||
.Title($"{target.NameFor(ctx)}'s {field}")
|
||||
.Image(new(currentValue));
|
||||
if (target.System == ctx.System?.Id)
|
||||
eb.WithDescription($"To clear, use `pk;member {target.Reference()} {cmd} clear`.");
|
||||
eb.Description($"To clear, use `pk;member {target.Reference()} {cmd} clear`.");
|
||||
await ctx.Reply(embed: eb.Build());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue