MessageCommandParser
MessageCommandParser
Signature
class MessageCommandParser {
constructor(message: Message, prefix: string[], schema: (command: string) => MessageCommandOptionsSchema)
getArgs() => ;
options: void
getOption(name: string) => T | undefined;
getCommand() => string;
getSubcommand() => string | undefined;
getSubcommandGroup() => string | undefined;
getPrefix() => ;
getFullCommand() => ;
parse() => ParsedMessageCommand;
}
constructor
method
(message: Message, prefix: string[], schema: (command: string) => MessageCommandOptionsSchema) => MessageCommandParser
getArgs
method
() =>
options
property
getOption
method
(name: string) => T | undefined
getCommand
method
() => string
getSubcommand
method
() => string | undefined
getSubcommandGroup
method
() => string | undefined
getPrefix
method
() =>
getFullCommand
method
() =>
parse
method
() => ParsedMessageCommand