BetterDiscordWI.panels.Panel2.DownloadResource C# (CSharp) Method

DownloadResource() private method

private DownloadResource ( string resource, string url ) : void
resource string
url string
return void
        private void DownloadResource(string resource, string url)
        {
            AppendLog("Downloading Resource: " + resource);

            WebClient webClient = new WebClient {Headers = {["User-Agent"] = "Mozilla/5.0"}};

            webClient.DownloadFile(new Uri(url), $"{Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)}\\BetterDiscord\\temp\\{resource}");
        }