Class: ChatSendBeforeEventSignal experimental
eventBeta
管理与聊天消息发送前触发的事件相关的回调。
Manages callbacks that are connected to an event that fires before chat messages are sent.
Example
customCommand.ts
Methods
subscribe()
subscribe(
callback): (arg0) =>void
World Mutation Early Execution Beta
Parameters
callback
(arg0) => void
Tip
此闭包以受限执行权限被调用。
Tip
This closure is called with restricted-execution privilege.
Returns
Tip
以受限执行权限被调用的闭包。
Tip
Closure that is called with restricted-execution privilege.
(arg0) => void
Remarks
添加一个回调,将在新的聊天消息发送之前被调用。
Adds a callback that will be called before new chat messages are sent.
unsubscribe()
unsubscribe(
callback):void
World Mutation Early Execution Beta
Parameters
callback
(arg0) => void
Tip
此闭包以受限执行权限被调用。
Tip
This closure is called with restricted-execution privilege.
Returns
void
Remarks
移除一个回调,使其在新的聊天消息发送之前不再被调用。
Removes a callback from being called before new chat messages are sent.
