diff --git a/Bot/Dc/Cmds.cs b/Bot/Dc/Cmds.cs index 1e4d6bb..585615c 100644 --- a/Bot/Dc/Cmds.cs +++ b/Bot/Dc/Cmds.cs @@ -1,4 +1,5 @@ using ClashOfClans.Models; +using Discord; using Discord.Interactions; using Discord.WebSocket; using Hyperstellar.Dc.Attr; @@ -69,10 +70,21 @@ public async Task AltAsync(Member alt, Member main) await RespondAsync($"`{clanAlt.Name}` is an alt of `{clanMain.Name}`"); } - [SlashCommand("info", "Check the User's infomation")] + [SlashCommand("info", "Print the member's infomation")] public async Task InfoAsync(Member member) { ClanMember cocMem = Coc.GetMember(member.CocId); - await RespondAsync($"{cocMem.Tag} {cocMem.Name}"); + + var embed = new EmbedBuilder + { + Title = cocMem.Name, + Author = new EmbedAuthorBuilder + { + Name = cocMem.Tag, + }, + + }; + + await RespondAsync(embed: embed.Build()); } } diff --git a/Bot/Sql/Donation.cs b/Bot/Sql/Donation.cs index 7223a4b..50214e1 100644 --- a/Bot/Sql/Donation.cs +++ b/Bot/Sql/Donation.cs @@ -5,7 +5,7 @@ namespace Hyperstellar.Sql; internal sealed class Donation(string id) { [PrimaryKey, NotNull] - public string Id { get; set; } = id; + public string MainId { get; set; } = id; [NotNull] public uint Donated { get; set; } = 0;