/// <summary>Launches a bot thread.</summary> public static void LaunchBotThread(string[] args, DiscordBotConfig internalConfig) { CurrentBot = new DiscordBot { ClientConfig = internalConfig }; Thread thr = new(new ParameterizedThreadStart(BotThread)) { Name = "discordbotthread" }; thr.Start(args); }
/// <summary>Initializes the connection monitor. Call <see cref="StartMonitorLoop"/> to start the monitor loop.</summary> public ConnectionMonitor(DiscordBot bot) { Bot = bot; }
/// <summary>Construct the cache instance.</summary> public DiscordMessageCache(DiscordBot _bot, int size) { Bot = _bot; MessagesPerChannel = size; }