🟢
Unlock Channel
mod.unlock_channelThe Mod SquadModerationRe-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.
🟢Moderation
Unlock Channel
mod.unlock_channelchannelIdrequired
{{channel.id}}
message
We're back! Chat away 🎉
output
error
Config fields
| Field | Type | Req | What it does |
|---|---|---|---|
channelId{{channel.id}} | text | yes | Channel ID 📍 |
messageWe'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);
}More Moderation pieces