public async Task FindFrameAsync([Remainder] string seedString) { seedString = seedString.ToLower(); if (seedString.StartsWith("0x")) { seedString = seedString.Substring(2); } var seed = Util.GetHexValue64(seedString); var r = new Z3SeedResult(Z3SearchResult.Success, seed, -1); var type = r.GetShinyType(); var msg = r.ToString(); var embed = new EmbedBuilder { Color = type == Shiny.AlwaysStar ? Color.Gold : Color.LighterGrey }; embed.AddField(x => { x.Name = "Seed Result"; x.Value = msg; x.IsInline = false; }); await ReplyAsync($"Here's your seed details for `{seed:X16}`:", embed : embed.Build()).ConfigureAwait(false); }
private void SendNotificationZ3(Z3SeedResult r) { var type = r.GetShinyType(); var lines = r.ToString(); var embed = new EmbedBuilder { Color = type == Shiny.AlwaysStar ? Color.Gold : Color.LighterGrey }; embed.AddField(x => { x.Name = "Seed Result"; x.Value = lines; x.IsInline = false; }); var msg = $"Here's your seed details for `{r.Seed:X16}`:"; Context.User.SendMessageAsync(msg, embed: embed.Build()).ConfigureAwait(false); }