Renamed ClientAPIUrl -> APIUrl
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Discord
|
|||||||
typeof(DiscordConfig).GetTypeInfo().Assembly.GetName().Version.ToString(3) ??
|
typeof(DiscordConfig).GetTypeInfo().Assembly.GetName().Version.ToString(3) ??
|
||||||
"Unknown";
|
"Unknown";
|
||||||
|
|
||||||
public static readonly string ClientAPIUrl = $"https://discordapp.com/api/v{APIVersion}/";
|
public static readonly string APIUrl = $"https://discordapp.com/api/v{APIVersion}/";
|
||||||
public const string CDNUrl = "https://cdn.discordapp.com/";
|
public const string CDNUrl = "https://cdn.discordapp.com/";
|
||||||
public const string InviteUrl = "https://discord.gg/";
|
public const string InviteUrl = "https://discord.gg/";
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ namespace Discord.API
|
|||||||
RequestQueue = new RequestQueue();
|
RequestQueue = new RequestQueue();
|
||||||
_stateLock = new SemaphoreSlim(1, 1);
|
_stateLock = new SemaphoreSlim(1, 1);
|
||||||
|
|
||||||
SetBaseUrl(DiscordConfig.ClientAPIUrl);
|
SetBaseUrl(DiscordConfig.APIUrl);
|
||||||
}
|
}
|
||||||
internal void SetBaseUrl(string baseUrl)
|
internal void SetBaseUrl(string baseUrl)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user