CommandKitEventDispatch
CommandKitEventDispatch
Represents an event dispatched to the plugins.
Signature
interface CommandKitEventDispatch {
name: string;
args: unknown[];
namespace: string | null;
once: boolean;
metadata: ParsedEvent;
accept(): void;
}
name
property
stringThe name of the event.
args
property
unknown[]The arguments passed to the event.
namespace
property
string | nullThe namespace of the event, if any.
once
property
booleanIf this event runs only once, it will be set to true.
metadata
property
The additional metadata associated with the event.
accept
method
() => voidCaptures the owner of the event, preventing other plugins from handling it.