public async Task StartBot(string token) { Client = new DiscordSocketClient(); Client.MessageReceived += MessageReceived; const string COMMUNITY_REPOSITORY_FILE = "CommunityStages.json"; Repository = CommunityRepository.Load(COMMUNITY_REPOSITORY_FILE); await Client.LoginAsync(TokenType.Bot, token); await Client.StartAsync(); await Task.Delay(-1); }