Port some more commands, mostly for embeds

This commit is contained in:
Ske
2020-12-25 12:56:46 +01:00
parent 9d919d687b
commit 2e0c30eb5d
13 changed files with 140 additions and 135 deletions

View File

@@ -7,6 +7,8 @@ using Dapper;
using DSharpPlus.Entities;
using Myriad.Builders;
using Newtonsoft.Json.Linq;
using PluralKit.Core;
@@ -89,11 +91,11 @@ namespace PluralKit.Bot
var data = JObject.Parse(await resp.Content.ReadAsStringAsync());
var scream = data["soulscream"]!.Value<string>();
var eb = new DiscordEmbedBuilder()
.WithColor(DiscordColor.Red)
.WithTitle(name)
.WithUrl($"https://onomancer.sibr.dev/reflect?name={encoded}")
.WithDescription($"*{scream}*");
var eb = new EmbedBuilder()
.Color((uint?) DiscordColor.Red.Value)
.Title(name)
.Url($"https://onomancer.sibr.dev/reflect?name={encoded}")
.Description($"*{scream}*");
await ctx.Reply(embed: eb.Build());
}
}