Cancellable Event
class CancellableEvent
Passed as the final argument to cancellable trigger callbacks. Call cancel to stop the underlying game action (e.g. hide a chat message). Scripts:
import { CancellableEvent } from 'ratph6.jim.api';
export function onChat(message: string, event: CancellableEvent): void {
if (message.includes("spam")) event.cancel();
}Content copied to clipboard