$channelName

Retrieves the name of a Discord channel.

Usage: $channelName[channelID]

<channelID> (Required): The ID of the channel you want to get the name of.


Example:

Member04/23/2025
!!exec $channelName[123456789012345678]
Custom Command Bot 04/23/2025
The channel's name is... (Assuming the channel ID 123456789012345678 is a channel named "help")

Important Notes

  • If a channel with the specified ID is not found, the function will return an empty string.
  • Make sure your bot has the necessary permissions to access the channel.

Getting the Channel ID

Use $channelID to get the ID of a channel by its name or to get the ID of the channel where the command was executed.

Related Functions

Use $findChannel to find a channel using its name.

Function Difficulty: Easy
Tags: channel name channel channel name