/// <summary>Function used to detect if a whisper command was received or not.</summary> public static bool detectedWhisperCommandReceived(string message, string username, List<char> commandIdentifiers) { if(detectedWhisperReceived(message, username)) { var whisperMessage = new WhisperMessage(message, username); return (commandIdentifiers.Count > 0 && commandIdentifiers.Contains(whisperMessage.Message[0])); } return false; }
/// <summary>Function used to detect if a whisper command was received or not.</summary> public static bool detectedWhisperCommandReceived(string message, string username, List <char> commandIdentifiers) { if (detectedWhisperReceived(message, username)) { var whisperMessage = new WhisperMessage(message, username); return(commandIdentifiers.Count > 0 && commandIdentifiers.Contains(whisperMessage.Message[0])); } return(false); }