Skip to content

$onlyNSFW

$onlyNSFW will check if the command was executed in a NSFW channel and return a error message if not.

Usage

$onlyNSFW[error?]

Parameters

FieldTypeDescriptionRequired
errorstringError to return when the command was not executed in a NSFW channel.true

Example(s)

This will limit the command only to NSFW channels:

1
client.command({
2
name: "onlyNSFW",
3
code: `
4
Ok.
5
$onlyNSFW[You can't use that command here!]
6
`
7
});