Skip to content

$argsSlice

$argsSlice will slice the given argument depending on the users input.

Usage

$argsSlice[text;from?;to]

Parameters

FieldTypeDescriptionRequired
textstringText you want to slicetrue
from?numberStarting point where to slice the messagefalse
tonumberEnding point where slicing endstrue

Example(s)

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

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