$textSlice
$textSlice
will slice a message depending on the given arguments.
Usage
$textSlice[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 Hello
and remove Bye
from the given text:
1client.command({2 name: "textSlice",3 code: `4 $textSlice[Hello Bye;0;5]5 `6});