$findTextSplitIndex
$findTextSplitIndex
will return the index of a text split element after a given query.
Usage
$findTextSplitIndex[query]
Parameters
Field | Type | Description | Required |
---|---|---|---|
query | string | Query. | true |
Example(s)
This will return 3
as the first Cya
in this $textSplit
is in the third position:
1client.command({2 name: "findTextSplitIndex",3 code: `4 $findTextSplitIndex[Cya]5 $textSplit[Hello, Bye, Cya;, ]6 `7});