Returns the channel's name.
Last updated 2 years ago
$channelName or $channelName[channelID]
This function has one param.
channelID
The channel ID to return the channel name for. *
Snowflake
No
* If channelID isn't provided, then the current channel name is returned.
bot.commands.add({ type: "basicCommand", name: "example", code: `The current channel name is \`$channelName\`` })