$argsSlice
$argsSlice
will slice the given argument depending on the users input.
Usage
$argsSlice[text;from?;to]
Parameters
Field | Type | Description | Required |
---|---|---|---|
text | string | Text you want to slice | true |
from? | number | Starting point where to slice the message | false |
to | number | Ending point where slicing ends | true |
Example(s)
This will return Bye
and remove Hello
from the given text:
1client.command({2 name: "slice",3 code: `4 $argsSlice[Hello Bye;1;5]5 `6});