$cropText
$cropText
is used to crop given text.
Usage
$cropText[text;limit;start?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
text | string | Text you want to slice. | true |
limit | number | Limit of the cropped text/will start to crop any text coming after that. | true |
start? | number | Where cropping should start. | false |
Example(s)
This will return bye
and remove hello and
from the given text:
1client.command({2 name: "cropText",3 code: `4$cropText[hello and bye;20;9]5 `6});