Interface SimpleCommandConfig

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

Properties

argSplitter?: ArgSplitter

Global argument splitter for simple command

bot prefix or prefix resolver

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

Define global response for certain conditions

Type declaration

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

    Define response for not found command