Moved UserAgent to DiscordConfig
This commit is contained in:
@@ -10,6 +10,7 @@ namespace Discord
|
|||||||
typeof(DiscordConfig).GetTypeInfo().Assembly.GetName().Version.ToString(3) ??
|
typeof(DiscordConfig).GetTypeInfo().Assembly.GetName().Version.ToString(3) ??
|
||||||
"Unknown";
|
"Unknown";
|
||||||
|
|
||||||
|
public static string UserAgent { get; } = $"DiscordBot (https://github.com/RogueException/Discord.Net, v{Version})";
|
||||||
public static readonly string APIUrl = $"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/";
|
||||||
|
|||||||
@@ -4,11 +4,6 @@ namespace Discord.Rest
|
|||||||
{
|
{
|
||||||
public class DiscordRestConfig : DiscordConfig
|
public class DiscordRestConfig : DiscordConfig
|
||||||
{
|
{
|
||||||
public static string UserAgent { get; } = $"DiscordBot (https://github.com/RogueException/Discord.Net, v{Version})";
|
|
||||||
|
|
||||||
internal const int MessageQueueInterval = 100;
|
|
||||||
internal const int WebSocketQueueInterval = 100;
|
|
||||||
|
|
||||||
/// <summary> Gets or sets the provider used to generate new REST connections. </summary>
|
/// <summary> Gets or sets the provider used to generate new REST connections. </summary>
|
||||||
public RestClientProvider RestClientProvider { get; set; } = DefaultRestClientProvider.Instance;
|
public RestClientProvider RestClientProvider { get; set; } = DefaultRestClientProvider.Instance;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user