registerMessageSent

open fun registerMessageSent(method: Any): EventTrigger

Registers a new trigger that runs before a message is sent in chat.

Passes through two arguments:

  • The message

  • The message event, which can be cancelled

Available modifications:

Return

The trigger for additional modification

Parameters

method

The method to call when the event is fired

Sources

Link copied to clipboard