Feature/#34 discord api migration #35
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue