ODTextCommandErrorInvalidOption interface
under construction
We are still working the API Reference! This page might be incomplete or doesn't contain all details!
Overview
The object returned from a text command invalid option error callback.
Properties
command class ➜ api.ODTextCommand
The command this error originates from
location number ➜ number
The location that this option was found
inherited msg type ➜ discord.Message
The message this error originates from
name string ➜ string
The command name this error originates from (can include spaces for subcommands)
option type ➜ api.ODTextCommandBuilderOption
The option that this error originates from
prefix string ➜ string
The command prefix this error originates from
reason type ➜ api.ODTextCommandErrorInvalidOptionReason
The reason for this invalid option
type type ➜ "invalid_option"
The type of text command error
value string ➜ string
The current value of this invalid option