Interface SimpleCommandConfig

interface SimpleCommandConfig {
    argSplitter?: ArgSplitter;
    prefix?: IPrefixResolver;
    responses?: {
        notFound?: string | ((command: Message<boolean>) => Awaitable<void>);
    };
}

Properties

argSplitter?: ArgSplitter

Global argument splitter for simple command

bot prefix or prefix resolver

responses?: {
    notFound?: string | ((command: Message<boolean>) => Awaitable<void>);
}

Define global response for certain conditions

Type declaration

  • OptionalnotFound?: string | ((command: Message<boolean>) => Awaitable<void>)

    Define response for not found command