Skip to content

$textSlice

$textSlice will slice a message depending on the given arguments.

Usage

$textSlice[text;from?;to]

Parameters

FieldTypeDescriptionRequired
textstringText you want to slice.true
from?numberStarting point where to slice the message.false
tonumberEnding point where slicing ends.true

Example(s)

This will return Hello and remove Bye from the given text:

1
client.command({
2
name: "textSlice",
3
code: `
4
$textSlice[Hello Bye;0;5]
5
`
6
});