Skip to content

$stringEndsWith

$stringEndsWith will check if the given argument ends with something specific.

Usage

$stringEndsWith[text;check]

Parameters

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

Example(s)

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

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