$isNSFW
Returns `true` if the current channel or given channelID is an NSFW channel. Otherwise, bot returns `false`.

FUNCTION USAGE

  • $isNSFW
  • $isNSFW[]
  • $isNSFW[channelID]

Properties:

[] - Leave brackets empty to return the current channel's NSFW status. Same as no brackets. channelID - The ID of the channel being checked.

Example 1: Returns true if the current channel is an NSFW channel.

1
bot.Command({
2
name: "nsfw-check",
3
code: `
4
$isNSFW
5
`
6
})
Copied!

Example 2: Returns true if the specific channel is an NSFW channel.

1
bot.Command({
2
name: "nsfw-check",
3
code: `
4
$isNSFW[5397459387459384533]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: