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

FUNCTION USAGE

  • $afkTimeout
  • $afkTimeout[]
  • $afkTimeout[guildID]

Properties:

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

Example 1: Get the afk channel timeout of the current guild.

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

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

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