public Program() { ConfigRoot = LoadConfiguration(); Config = ConfigRoot.Get <BotConfig>(); Client = new DiscordSocketClient(); Client.Log += (msg) => { Console.WriteLine(msg.ToString()); return(Task.CompletedTask); }; Client.MessageReceived += OnMessageReceived; }