K
Docs
🟒

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 πŸŽ‰
textβ€”Announcement 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);
}