Functionalities
Other
Powered By GitBook
$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

1
bot.Command({
2
name: "thischannel",
3
code: `
4
$channelName
5
`
6
})
Copied!

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

1
bot.Command({
2
name: "channel",
3
code: `
4
$channelName[5397459387459384533]
5
`
6
})
Copied!
Last modified 8mo ago
Copy link
Contents
Properties: