$channelID
Returns the ID of the channel where the command is executed. You can also use it to find the ID of another channel by providing its name.
$channelID[channel name (optional)]
Usage: - If no channel name is provided, it returns the ID of the channel where the command was used.
- If a channel name is provided, it returns the ID of the channel with that name.
Example:
!!exec $channelID
839090554205241394
Explanation: The bot returns the channel ID where the !!exec
command was used.
Example with channel name:
Let's say you have a channel named #general
. You can get its ID like this:
!!exec $channelID[general]
If a channel named general
exists, the output will be its ID.
WARNING
This function will not work with the voice channel join/leave trigger. Use $voiceChannelID instead.
This function will not work with the channel creation/deletion trigger. Use $eventChannelID instead.