Interface ChatMessageHandlerReplyCreator<CREATE_REPLY_INPUT_DATA, DETECTOR_INPUT_DATA, DETECTOR_OUTPUT_DATA>

The structure of a chat message handler that has a method to check a message if it should create a reply and a method to create a reply.

Type Parameters

  • CREATE_REPLY_INPUT_DATA extends object = EMPTY_OBJECT

    The data that is necessary to create a reply.

  • DETECTOR_INPUT_DATA extends object = EMPTY_OBJECT

    The data that is necessary to detect if a reply should be created.

  • DETECTOR_OUTPUT_DATA extends object = EMPTY_OBJECT

    The data that is created by the reply detector for further use when creating the reply.

Hierarchy

  • ChatMessageHandlerReplyCreator

Properties

Properties

createReply: ChatMessageHandlerCreateReply<CREATE_REPLY_INPUT_DATA & DETECTOR_OUTPUT_DATA>

The method that handles the detected command with additional and forwarded data from the detector.

detect: ChatMessageHandlerDetect<DETECTOR_INPUT_DATA, DETECTOR_OUTPUT_DATA>

The method that detects if something should be handled.

info: Readonly<ChatMessageHandlerInfo>

Information about the chat message handler.

Generated using TypeDoc