} // the global report case id counter. // issues are only offloaded (sent twice into the same channel, if the original cannot be found.) public void AddChangelog(Changelog c) { if (Changelogs.Contains(c)) { return; } Changelogs.Add(c); }
public bool TryGetChangelog(ulong id, out Changelog changelog) { changelog = null; if (!Changelogs.Any(x => x.Id == id)) { return(false); } changelog = Changelogs.Where(x => x.Id == id).FirstOrDefault(); return(true); }
public async Task NotifyCompleteReportAsync(OldAccount a, OrikivoCommandContext Context, Report report, Changelog changelog) { ulong reward = 100; string b = $"The report that was accepted ({report.Id}) has been built on {changelog.Name} ({changelog.Id}). Thank you for your input!\nYou have been awarded {EmojiIndex.Balance}{reward.ToPlaceValue().MarkdownBold()} for your time. Keep up the good work."; //CompactMessage msg = new CompactMessage(b); //OldMail m = new OldMail("Orikivo", $"({report.Id}) has been built!", msg); //await m.SendAsync(a, Context.Client); }