Feature/#34 discord api migration #35

Merged
Serraniel merged 13 commits from feature/#34-discord-api-migration into master 2020-07-27 13:02:36 +02:00
Showing only changes of commit 59b7927fc6 - Show all commits

View file

@ -17,7 +17,7 @@ namespace Discord_Media_Loader.Helper
var github = new GitHubClient(new ProductHeaderValue("DiscordMedialLoader"));
var tag =
(await github.Repository.Release.GetAll("Serraniel", "DiscordMediaLoader")).OrderByDescending(x => x.CreatedAt).First().TagName.Replace("v", "") ?? "";
(await github.Repository.Release.GetAll("Serraniel", "DiscordMediaLoader")).Where(x => x.Prerelease == false).OrderByDescending(x => x.CreatedAt).First().TagName.Replace("v", "") ?? "";
var version = new Version(tag);
return version;