Skip to content
Server Helpers timeoutFor

$timeoutFor — Times out a member for a written duration, with an optional reason in the audit log

Times out a member for a written duration, with an optional reason in the audit log.

Syntax

$timeoutFor[userID;duration;(reason)]

Parameters

  • userID (ID, required) — The member.
  • duration (text, required) — 10m, 2h, 1d, 1h30m… up to 28 days (same syntax as $parseDuration).
  • reason (text, optional) — Reason in the audit log.

Return Value

  • empty.

Usage

$timeoutFor[$mentioned[1];10m;Spam]

Example

$timeoutFor[$mentioned[1];10m;Spam]
$sendMessage[Member timed out.]

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.