Editar

Compartir a través de


ChatSendAfterEventSignal Class

Caution

This class is still in pre-release. Its signature may change or it may be removed in future releases.

Manages callbacks that are connected to chat messages being sent.

Methods

subscribe

subscribe(callback: (arg0: ChatSendAfterEvent) => void): (arg0: ChatSendAfterEvent) => void

Adds a callback that will be called when new chat messages are sent.

Parameters

Returns (arg0: ChatSendAfterEvent) => void

Notes:

  • This function can't be called in read-only mode.
  • This function can be called in early-execution mode.

unsubscribe

unsubscribe(callback: (arg0: ChatSendAfterEvent) => void): void

Removes a callback from being called when new chat messages are sent.

Parameters

Notes:

  • This function can't be called in read-only mode.
  • This function can be called in early-execution mode.