Skip to content

$stringStartsWith

$stringStartsWith will check if the given argument starts with something specific.

Usage

$stringStartsWith[text;check]

Parameters

FieldTypeDescriptionRequired
textstringThe text that will be checked.true
checkstringThe argument that will check if the text starts with something specific.true

Example(s)

This will return true as aoi.js starts with aoi:

1
client.command({
2
name: "stringStartsWith",
3
code: `
4
$stringStartsWith[aoi.js;aoi]
5
`
6
});