$onlyNSFW
Command will only execute if the command is triggered in a non-NSFW channel. Otherwise, the function returns the error message.

FUNCTION USAGE

  • $onlyNSFW
  • $onlyNSFW[]
  • $onlyNSFW[error]

Properties:

[] - Leave brackets empty for a silent error. Same as no brackets. error - The error to send to the channel if the channel where the command was triggered is not an NSFW channel.

Example 1: Returns nothing if the channel is not labeled NSFW.

1
bot.Command({
2
name: "hentai",
3
code: `
4
//Your dirty stuff you animal
5
6
$onlyNSFW
7
`
8
})
Copied!

Example 2: Returns the error message if the channel is not labeled NSFW.

1
bot.Command({
2
name: "hentai",
3
code: `
4
//Your dirty stuff you animal
5
6
$onlyNSFW[Sorry but this command can only be done in an NSFW channel]
7
`
8
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: