Gdzie używać?
W metodach wymaganych przez interfejsy:
ChatCommand // Commands
export type ChatCommandPreExecution = {
preExecution: (...args: any[]) => TorPromiseT<any>;
};
export type ChatCommandExecution = {
execution: (...args: any[]) => TorPromiseT<any>;
};
export type ChatCommandPostExecution = {
postExecution: (...args: any[]) => TorPromiseT<any>;
};
ChatListener // Listeners
export type ChatListenerExecution = {
execution: (...args: any[]) => TorPromiseT<any>;
};
Last updated