K
Docs
API ReferencePiecesSet Slowmode
🐢

Set Slowmode

mod.slowmodeThe Mod SquadModeration

Sets a channel's slowmode cooldown — from 0 (off) to 21600 seconds (6 hours). Users can only send one message per cooldown. Great for calming heated chats, preventing raid spam, or managing high-traffic events.

When to use this
  • Set to 0 to turn slowmode off
  • Max is 21600 (6 hours) — though that's usually overkill
  • Great for auto-calming a channel during a raid or heated argument

On the canvas

This is what Set Slowmode looks like when you place it on your flow. Each field below is something you configure in the inspector panel.

🐢
Set Slowmode
mod.slowmode
Moderation
channelIdrequired
{{channel.id}}
secondsrequired
5 — set 0 to disable
output
error

Config fields

FieldTypeReqWhat it does
channelId
{{channel.id}}
textyesChannel ID 📍
seconds
5 — set 0 to disable
numberyesCooldown ⏱️ (seconds)

Output ports

outputSlowmode updated
errorBot needs Manage Channels in the target channel
📐

In TypeScript, this would be…

Not something you need to write — just a look at what Kitcord does for you.

TypeScript
const channel = await guild.channels.fetch(channelId);
if (channel?.isTextBased()) {
  await channel.setRateLimitPerUser(seconds);
  // 0 = disable slowmode
}