private Task OnMessage(SocketMessage msg) { log.Debug($"Message [{msg}] from [{msg.Author} ({(msg.Author.IsBot ? "Bot" : "Not bot")}|{(msg.Author.IsWebhook ? "Webhook" : "Not Webhook")})] in [{msg.Channel}]"); Task.Run(async() => { var text = msg.Content; if (msg.Author.IsBot) { return; } log.Debug($"Handling [{msg}] from [{msg.Author} ({(msg.Author.IsBot ? "Bot" : "Not bot")}|{(msg.Author.IsWebhook ? "Webhook" : "Not Webhook")})] in [{msg.Channel}]"); await dice.HandleRolls(msg.Channel, text, msg.Author.Id); await proxy.HandleMessage(msg); }); return(Task.CompletedTask); }