Skip to content

argsFromCommandOptions

argsFromCommandOptions(options, restLast?): PrefixArgSpec[]

Defined in: packages/utils/src/args.ts:268

Argument specs from a slash command’s options, so one definition serves both /command and the prefix command. Subcommands and attachments are left out.

readonly object[]

The command’s (or subcommand’s) options as sent to Discord.

boolean = false

Read the last string option as the rest of the message (handy for reasons).

PrefixArgSpec[]