public R SendChannelMessage(string message) { if (Ts3String.TokenLength(message) > Ts3Const.MaxSizeTextMessage) { return("The message to send is longer than the maximum of " + Ts3Const.MaxSizeTextMessage + " characters"); } return(tsBaseClient.SendChannelMessage(message).ToR(Extensions.ErrorFormat)); }
public R SendChannelMessage(string message) { if (Ts3String.TokenLength(message) > Ts3String.MaxMsgLength) { return("The message to send is longer than the maximum of " + Ts3String.MaxMsgLength + " characters"); } try { tsBaseClient.SendChannelMessage(message); return(R.OkR); } catch (Ts3CommandException ex) { return(ex.ErrorStatus.ErrorFormat()); } }