Skip to content

$channelName

$channelName will return the channel name of the given channel.

Usage

$channelName[channelID?]

Parameters

FieldTypeDescriptionRequired
channelID?numberChannel ID of the channel you want the channel name of.false

Example(s)

This will return the channel name of the channel where you executed the command in:

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