$channelID

Returns the channel's ID.

Usage

$channelID or $channelID[channelName]

This function has one param.

ParamDescriptionTypeRequired

channelName

The channel name to return the channel ID for. *

Snowflake

No

* If channelName isn't provided, then the current channel ID is returned.

Example

bot.commands.add({
    type: "basicCommand",
    name: "channel",
    code: `channelID: $channelID
    channelMentions: <#$channelID>
    channelName: $channelName`
})

Last updated