K
Docs
API ReferencePiecesUnlock Channel
🟢

Unlock Channel

mod.unlock_channelThe Mod SquadModeration

Re-enables @everyone's Send Messages permission, reversing a Lock Channel. When the dust settles, unlock and get the conversation flowing again.

When to use this
  • Pair with a Send Message so users know the channel is open again
  • Chain Lock → Wait → Unlock for a timed lockdown

On the canvas

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

🟢
Unlock Channel
mod.unlock_channel
Moderation
channelIdrequired
{{channel.id}}
message
We're back! Chat away 🎉
output
error

Config fields

FieldTypeReqWhat it does
channelId
{{channel.id}}
textyesChannel ID 📍
message
We're back! Chat away 🎉
textAnnouncement message 📢

Output ports

outputChannel unlocked
errorBot needs Manage Channels / Manage Roles
📐

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.permissionOverwrites.edit(guild.roles.everyone, {
    SendMessages: null,
  });
  if (announcement) await channel.send(announcement);
}