You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

DiscordConfig.cs 1.5 kB

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. namespace Discord
  3. {
  4. public class DiscordConfig
  5. {
  6. public const int MaxMessageSize = 2000;
  7. public const string LibName = "Discord.Net";
  8. public static readonly string LibVersion = null;
  9. public const string LibUrl = "https://github.com/RogueException/Discord.Net";
  10. public const string ClientAPIUrl = "https://discordapp.com/api/";
  11. public const string StatusAPIUrl = "https://srhpyqt94yxb.statuspage.io/api/v2/"; //"https://status.discordapp.com/api/v2/";
  12. public const string CDNUrl = "https://cdn.discordapp.com/";
  13. public const string InviteUrl = "https://discord.gg/";
  14. public string AppName { get; set; } = null;
  15. public string AppUrl { get; set; } = null;
  16. public string AppVersion { get; set; } = null;
  17. public LogSeverity LogLevel { get; set; } = LogSeverity.Info;
  18. public int ConnectionTimeout { get; set; } = 30000;
  19. public int ReconnectDelay { get; set; } = 1000;
  20. public int FailedReconnectDelay { get; set; } = 15000;
  21. public bool CacheToken { get; set; } = true;
  22. public int MessageCacheSize { get; set; } = 100;
  23. public bool UsePermissionsCache { get; set; } = true;
  24. public bool EnablePreUpdateEvents { get; set; } = true;
  25. public int LargeThreshold { get; set; } = 250;
  26. public EventHandler<LogMessageEventArgs> LogHandler { get; set; }
  27. public string UserAgent { get; }
  28. }
  29. }