$channelDFromName

(deprecated)

🧙‍♂️ This function is deprecated, instead better use $channelID[].

Returns a channel’s ID from its name.

Syntax

$channelIDFromName[Channel name]

Parameters

  • Channel name (Type: String || Flag: Required): The channel name that the bot will return the channel ID for.

Example

$nomention
Channel ID: $channelIDFromName[$mesaage]
!example main-chat Channel ID: 1014546423032860754