public void Handle(object sender, DeleteOperationRequestEventArgs e) { CustomCommand command = FetchFromSet(e.RequestName, customCommandRepository.GetAll()); string message = string.Empty; if (DeleteCommand(command)) { message = string.Format("!{0} command has been deleted!", command.Name); } if (!string.IsNullOrEmpty(message)) { if (e.IsWhisper) { client.Whisper(e.User, message); } else { client.SendMessage(message); } } }
public void OnEvent(DeleteOperationRequestEventArgs e) { DeleteOperationHandler(this, e); }