Functionalities
Functions
Data
Other
$channelName
Returns the channel name of the channel the command is executed in or of an existing channel ID in a guild your bot can read.

FUNCTION USAGE

  • $channelName
  • $channelName[]
  • $channelName[channelID]

Properties:

[] - Returns the channel name of the channel the command is executed in. Same as no brackets. channelID - Returns the channel name of the channel of the supplied channel ID
  • Bot must be in the server to read the data!
  • Now reads channel data globally!

Example 1: Returns the channel name of where the command was executed

bot.Command({
name: "thischannel",
code: `
$channelName
`
})

Example 1: Returns the channel name of a specific channel. Otherwise, bot returns the current channel name.

bot.Command({
name: "channel",
code: `
$channelName[5397459387459384533]
`
})
Copy link