$onlyNSFW

Only allows the command to be executed in NSFW channels.

Syntax

$onlyNSFW[Error message]

Parameters

  • Error message (Type: String || Flag: Emptiable): The message that is returned when the command is executed outside of an NSFW channel.

Example

$nomention $onlyNSFW[❌ That command can only be executed in NSFW channels.] $c[Put your code here.]