$channelType

Allows you to comment on your code, without the text being included in the bot's response.

Usage

$channelType[channelID]

This function has one param.

ParamDescriptionTypeRequired

channelID

The channel to get the type of.

Snowflake

Yes

Examples

Example #1

bot.commands.add({
    type: "basicCommand",
    name: "example",
    code: `$channelType[$channelID]` //Returns the current channel's type
})

Example #2

bot.commands.add({
    type: "basicCommand",
    name: "example",
    code: `$channelType[$findChannel[$message]]` //Returns the channel type of the provided channel
})

Last updated