$editSplitText
Edits a value of `$splitText` to the newly defined value.

FUNCTION USAGE

  • $editSplitText[number;newValue]

Properties:

number - The splitText number to edit. newValue - The new value of the splitText.

Example 1: Edits the splitText from test to TESTING

1
bot.Command({
2
name: "test",
3
code: `
4
edited splitText - $splitText[1]
5
$editSplitText[1;TESTING]
6
old splitText - $splitText[1]
7
$textSplit[test-bro;-]
8
`
9
})
Copied!

Example 2: Edits the splitText from bro to BROOO

1
bot.Command({
2
name: "test",
3
code: `
4
edited splitText - $splitText[2]
5
$editSplitText[2;BROOO]
6
old splitText - $splitText[2]
7
$textSplit[test-bro;-]
8
`
9
})
Copied!
Last modified 11mo ago
Copy link
Contents
Properties: