Discord Command Argument (Expression) — DiSky

Addon: DiSky · Category: Expression · Since: 4.0.0

Syntax

[][the] last arg[ument][s]

Description

Works same as Skript's command argument. You can specify the argument number or the argument type (in case there's only one user or member for example) to get the selected value. Only usable inside a discord command trigger section. Use 'arg-1', 'arg-2', etc. for positional access; 'user-argument', 'member-argument', etc. for type-based access.

Examples

# discord command move <member> <voicechannel>:
#     trigger:
#         move arg-1 to arg-2
set {_target} to user-argument
set {_channel} to arg-2

View source