Are you an LLM? You can read better optimized documentation at /en/message-templates/types/custom-commands/arguments.md for this page in Markdown format
Arguments
This data type describes the custom command arguments and options.
Properties
| Property | Type | Description |
|---|---|---|
value | String | Original message string of command invocation. |
args | List<String> | List of the arguments extracted from the string and split by whitespace. |
targetMember | Member |
|
Methods
get(Position)
after(Position)
before(Position)
range(Start, End)
getOption(Name)
Returns Slash Command option by name.
Returns: String, Number, Boolean, Member, Role, Attachment, TextChannel, NewsChannel, VoiceChannel, StageChannel, ForumChannel, MediaChannel, ThreadChannel, Category
getOptionsByType(Type)
Returns Slash Command options list by type.
Returns: List of String, Number, Boolean, Member, Role, Attachment, TextChannel, NewsChannel, VoiceChannel, StageChannel, ForumChannel, MediaChannel, ThreadChannel, Category