|
@@ -5,7 +5,7 @@ namespace Discord |
|
|
public class DiscordConfig |
|
|
public class DiscordConfig |
|
|
{ |
|
|
{ |
|
|
public const int APIVersion = 6; |
|
|
public const int APIVersion = 6; |
|
|
public static string Version { get; } = typeof(DiscordRestConfig).GetTypeInfo().Assembly?.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion ?? "Unknown"; |
|
|
|
|
|
|
|
|
public static string Version { get; } = typeof(DiscordRestConfig).GetTypeInfo().Assembly?.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ?? "Unknown"; |
|
|
|
|
|
|
|
|
public static readonly string ClientAPIUrl = $"https://discordapp.com/api/v{APIVersion}/"; |
|
|
public static readonly string ClientAPIUrl = $"https://discordapp.com/api/v{APIVersion}/"; |
|
|
public const string CDNUrl = "https://cdn.discordapp.com/"; |
|
|
public const string CDNUrl = "https://cdn.discordapp.com/"; |
|
|