Skip to content

$channelType

$channelType will return the given channel’s type.

Usage

$channelType[channelID?]

Parameters

FieldTypeDescriptionRequired
channelID?numberID of the channel you want the channel type to be returned.false

Example(s)

This will return the channel type of the channel where you execute the command in:

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