SlashTags support up to 10 arguments with multiple types, allowing for flexibility and advanced user input handling.
Similar to the initial slash tag creation process, adding arguments to slash tags follows an interactive setup. You can either choose to add arguments while creating a slash tag, or by editing them later with
[p]slashtag edit arguments <slashtag>.
|String||Accepts any user inputted text as an argument.||StringAdapter|
|Integer||Only allows integer input for the argument.||IntAdapter|
|Boolean||Allows either ||StringAdapter|
|User||Refers to a member of the server or a member in the DM chanel, accepting username or IDs as input.||MemberAdapter|
|Channel||Refers to a text, voice, or category channel in this server, accepting channel names or IDs as input.||ChannelAdapter|
|Role||Refers to a server role, accepting role name or IDs as input.||SafeObjectAdapter|
|Number||Accepts any floating point number.||StringAdapter|
|Choices||Offers a list of choices for the user to pick. Each option has a name and underlying value which is returned as string argument when accessed.||StringAdapter|
A slash tag's argument can be accessed in its tagscript through the use of variable block. For example, if a slash tag has a argument named
member, it could be accessed with
Additionally, slash tag arguments of the channel, role, or user type support attribute access through the block parameter such as