diff --git a/Bot/Discord/Cmds.cs b/Bot/Discord/Cmds.cs index 95d2e74..f082faa 100644 --- a/Bot/Discord/Cmds.cs +++ b/Bot/Discord/Cmds.cs @@ -1,4 +1,5 @@ using ClashOfClans.Models; +using Discord; using Discord.Interactions; using Discord.WebSocket; using Hyperstellar.Discord.Attr; @@ -71,6 +72,23 @@ public async Task AltAsync(Member alt, Member main) await RespondAsync($"`{clanAlt.Name}` is now an alt of `{clanMain.Name}`"); } + [SlashCommand("info", "Print the member's infomation")] + public async Task InfoAsync(Member member) + { + ClanMember cocMem = Coc.GetMember(member.CocId); + + var embed = new EmbedBuilder + { + Title = cocMem.Name, + Author = new EmbedAuthorBuilder + { + Name = cocMem.Tag, + }, + + }; + + await RespondAsync(embed: embed.Build()); + [RequireAdmin] [SlashCommand("link", "[Admin] Links a Discord account to a Main")] public async Task LinkAsync(Member coc, IGuildUser discord)