Entity Info
afkChannelID
$afkChannelID[] â AFK Channel
$afkChannelID[] returns the ID of the AFK (Away From Keyboard) voice channel of the server. Inactive members in a voice channel are automatically moved to this channel after the delay set by $afkTimeout[].
Syntax
bdfd
$afkChannelID
Syntax
$afkChannelID
Parameters
| Parameter | Description | Required |
|---|---|---|
| None | Â | Â |
Return value
- Type:
string - The ID of the AFK channel, or an empty string if not configured.
Examples
Displaying the AFK channel
$if[$afkChannelID!=]
$sendMessage[đ¤ AFK Channel: <#$afkChannelID> (delay: $afkTimeout seconds)]
$else
$sendMessage[âšī¸ No AFK channel is configured on this server.]
$endif
Server configuration embed
$title[âī¸ Configuration of $serverName]
$addField[đ¤ AFK Channel;$if[$afkChannelID!=]<#$afkChannelID>$elseNot configured$endif;yes]
$addField[âąī¸ AFK Delay;$afkTimeout seconds;yes]
$addField[đ Rules Channel;$if[$rulesChannelID!=]<#$rulesChannelID>$elseNot configured$endif;yes]
$addField[đĸ System Channel;$if[$systemChannelID!=]<#$systemChannelID>$elseNot configured$endif;yes]
$color[#5865F2]
$sendEmbedMessage
Configuration log
$log[Server configuration $serverName | AFK: $afkChannelID | Timeout: $afkTimeout | Rules: $rulesChannelID | System: $systemChannelID]
Notes
- The AFK channel must be a voice channel.
- If no AFK channel is configured, the function returns an empty string.
- The delay before moving is given by
$afkTimeout[](in seconds). - Members in the AFK channel are automatically muted by Discord.