Skip to content
Moderation setGuildDmsDisabled

$setGuildDmsDisabled — Sets the guild’s DMs activity disabled for a specific duration, returns bool

Sets the guild's DMs activity disabled for a specific duration, returns bool

Syntax

$setGuildDmsDisabled[guildID;(duration)]

Parameters

  • guildID (id, required) — The guild to disable DMs for
  • duration (text, optional) — The duration for disabling DMs, omit to enable DMs again

Return Value

  • Boolean.

Usage

$setGuildDmsDisabled[guildID;(duration)] → result

Example

$sendMessage[$setGuildDmsDisabled[10;1h]]

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.