Functionalities
Other
$afkChannel
Returns the AFK channel ID of the provided guildID (if enabled). Bot will return `undefined` if the afk channel is not enabled in the guild.

FUNCTION USAGE

  • $afkChannel
  • $afkChannel[]
  • $afkChannel[guildID]

Properties:

[] - Leave blank to define the current guild. Same as no brackets. guildID - Supply the guild ID for the afk channel ID in that guild.
Bot must be in the guild to read that data!

Example 1: Get the afk channel of the current guild

1
bot.Command({
2
name: "afkchannel",
3
code: `
4
AFK Channel - $afkChannel
5
`
6
})
Copied!

Example 2: Get the afk channel of the provided guildID. Input a valid guildID.

1
bot.Command({
2
name: "afkchannel",
3
code: `
4
AFK Channel - $afkChannel[$message[]]
5
`
6
})
Copied!
Last modified 5mo ago
Copy link