Skip to main content

$onlyIfMessageContains

Will check if the message contains the given text and if not return a error message.

Parameters

ParameterDescription
contentMessage which should contain the given text
...textText to check for in the message
messageErrorerror to return

Example

<AoiClient>.addCommand({
name: "message",
code: `
$onlyIfMessageContains[$message;true;false;Only true/false]
`,
});