Skip to content
Moderation setThreadArchiveDuration

$setThreadArchiveDuration — Sets a thread’s auto archive duration.

Sets a thread's auto archive duration.

Syntax

$setThreadArchiveDuration[channelID;duration;(reason)]

Parameters

  • channelID (id, required) — The thread to modify
  • duration (text, required) — The new duration of auto archive
  • reason (text, optional) — The reason for modifying archive duration

Return Value

  • Boolean.

Usage

$setThreadArchiveDuration[channelID;duration;(reason)] → result

Example

$sendMessage[$setThreadArchiveDuration[35;60]]

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.