Skip to content

$channelNSFW

$channelNSFW will return true or false depending if the given channel is marked as NSFW or not.

Usage

$channelNSFW[channelID?]

Parameters

FieldTypeDescriptionRequired
channelID?numberID of the channel you want to check if its marked as NSFW or not.false

Example(s)

This will return either true or false depending on if the channel where you execute the command is marked as NSFW or not:

1
client.command({
2
name: "channelNSFW",
3
code: `
4
$channelNSFW[$channelID]
5
`
6
});