Skip to content
Channel Name Ai

$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:

!!exec $channelName[123456789012345678] The channel's name is... (Assuming the channel ID 123456789012345678 is a channel named "help")

::: tip 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. :::

::: tip 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. :::

::: tip Related Functions Use $findChannel to find a channel using its name. :::

Function Difficulty:
Tags: