void UpdateEvent(VersionData ver) { if (UIUtility.ShowDialog($"A new update is available: {ver.version} ({ver.build})\nDownload?", "Update", ButtonType.YesNo, ImageType.Asterisk, ResultType.No) == ResultType.Yes) { About.OpenURL(ver.download); Close(); } }
public async Task <string> GetPatchNotesAsync(VersionData ver) { return(await(await Client.SendAsync("GET", $"https://fnbot.shop/api/patchnotes/{ver.patchnotes}")).GetStringAsync()); }
bool CheckUpdate(VersionData ver) => BUILD < ver.build;