Skip to content
Blocks

Channel Blocks

Create Channel, Edit Channel Permissions and Remove Channel with the real blocks of the app; explicit ticket creation instead of incomplete BibiScript helpers.

💡 Resource: Every field of every block is listed in the Complete Blocks Dictionary, and a detailed walkthrough is in the Ticket System Guide.

Create Channel

Requires a guild context and the bot’s Manage Channels permission. The block’s result is the channel ID (read it with ((action.<key>))); a failure raises an action error.

ChannelsCreate ChannelcreateChannel
Name*
Channel name
Type
text
Channel typetextvoiceannouncementstageforumcategory
Category Id
Parent category
Topic
Channel topic/description
Nsfw
Age-restricted channel
Slowmode
0s
Reason
Reason shown in the audit log

Use Category Id, the parent category’s ID, to place the channel in a category.

Edit Channel Permissions

Edits one permission overwrite of a channel. The bot needs permission to change the channel’s overwrites. Each permission in the Permissions editor is tri-state: unset (inherit), allow or deny.

ChannelsEdit Channel PermissionseditChannelPermissions
Channel Id*
Channel to edit permissions for
Target Id*
User or Role ID to set overwrite for
Shown when Target Type = member / role
Target Type*
member
Whether targetId is a member, role, or @everyone (for @everyone, targetId is auto-set to the guild ID)memberroleeveryone
Permissions
Permission overwrites — tap each permission to cycle through Allow / Deny / Unset
Reason
Audit log reason

Explicit ticket sequence

Create a private parent category first, with access denied to everyone and allowed for the bot and staff, and use its ID below. The sequence creates a text channel, grants its creator View Channel, Send Messages and Read Message History, sends a welcome, and replies to the slash interaction.

ChannelsCreate ChannelcreateChannel
Name*
ticket-((user.id))
Type
text
Category Id
123456789012345678
4 other fields keep their default value.
Action Key
ticket_channel
ChannelsEdit Channel PermissionseditChannelPermissions
Channel Id*
((action.ticket_channel))
Target Id*
((user.id))
Shown when Target Type = member / role
Target Type*
member
Permissions
viewChannel: allow
sendMessages: allow
readMessageHistory: allow
1 other field keeps its default value.
MessagesSend MessagesendMessage
Channel Id
((action.ticket_channel))
Content
Welcome <@((user.id))>. Describe your issue here.
Shown when Message Mode = message
9 other fields keep their default value.
InteractionsRespond with MessagerespondWithMessage
Content
Ticket created: <#((action.ticket_channel))>
Ephemeral
3 other fields keep their default value.

This sequence is the channel creation step, not a complete ticket lifecycle. Store the created ID in scoped storage to track open tickets and enforce limits. Review inherited staff/bot permissions. Creation and permission updates are separate operations: if an update fails, the channel can still exist and requires cleanup or repair.

Remove Channel

The Channel Id is required. Requires Manage Channels; the result is the deleted ID. For a close command, verify the caller’s permission and confirm the channel ID against stored ticket data before this block. A channel’s name alone is not proof that it is a ticket.

ChannelsRemove ChannelremoveChannel
Channel Id*
((channel.id))
1 other field keeps its default value.

Deletion cannot be undone. Update Channel edits a channel; archived/locked settings are thread-specific and do not delete a text-channel ticket.