π’
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