Concrete class prototype
This commit is contained in:
16
src/Discord.Net.Rest/DiscordRestConfig.cs
Normal file
16
src/Discord.Net.Rest/DiscordRestConfig.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Discord.Net.Rest;
|
||||
|
||||
namespace Discord.Rest
|
||||
{
|
||||
public class DiscordRestConfig : DiscordConfig
|
||||
{
|
||||
public static string UserAgent { get; } = $"DiscordBot (https://github.com/RogueException/Discord.Net, v{Version})";
|
||||
|
||||
internal const int RestTimeout = 10000;
|
||||
internal const int MessageQueueInterval = 100;
|
||||
internal const int WebSocketQueueInterval = 100;
|
||||
|
||||
/// <summary> Gets or sets the provider used to generate new REST connections. </summary>
|
||||
public RestClientProvider RestClientProvider { get; set; } = url => new DefaultRestClient(url);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user