Skip to content
Moderation setGuildAFKTimeout

$setGuildAFKTimeout — Sets the AFK timeout for a guild, returns bool.

Sets the AFK timeout for a guild, returns bool.

Syntax

$setGuildAFKTimeout[guildID;seconds;(reason)]

Parameters

  • guildID (id, required) — The guild to set AFK timeout for
  • seconds (number, required) — The new AFK timeout in seconds (60, 300, 900, 1800, 3600)
  • reason (text, optional) — The reason for this action

Return Value

  • Boolean.

Usage

$setGuildAFKTimeout[guildID;seconds;(reason)] → result

Example

$sendMessage[$setGuildAFKTimeout[10;300]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.