Skip to content

$channelID

$channelID will return the channel ID of the given channel name.

Usage

$channelID[name?]

Parameters

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

Example(s)

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

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