internal bool SendMessage(T msg, BotBitsClient client) { var e = new SendingEvent <T>(msg); e.RaiseIn(client); if (e.Cancelled) { return(false); } var con = ConnectionManager.Of(client).Connection; if (con == null) { return(false); } var e2 = new SendEvent <T>(msg); e2.RaiseIn(client); e.Message.Send(con); return(true); }