private async Task Run() { MySQL.Connect(); DiscordServers.LoadServers(); _bot = new DiscordBot(); _bot.Login(); await Task.Delay(-1); }
public void UpdateGuild(string g_id, Guild newguild) { Guild g = this.GetGuild(g_id); if (g == null) { return; } int idx = DiscordServers?.IndexOf(g) ?? -1; if (idx == -1) { return; } this.DiscordServers[idx] = newguild; }