Flow reference: Server Management
Apply Server Template
Create the roles, categories and channels of a JSON layout that the server does not have yet (same names are reused). Sets {template.created}.
Create the roles, categories and channels of a JSON layout that the server does not have yet (same names are reused). Sets {template.created}.
When and how to use it
Connect the input from the preceding step on the path that should perform this operation.
Fill the fields with data available in the trigger's context.
Connect the needed outputs; an unconnected path cannot run later blocks.
Configuration fields
Layout (JSON) — structure
JSON layout with roles and categories of channels. Existing roles, categories and channels with the same names are reused, so running it again creates nothing new. The validator reports invalid JSON before publishing.
Input: Multiline text.
Editor guidance: roles: [{name, color, hoist}], categories: [{name, private, allowRoles, channels: [{name, type, topic, private, allowRoles}]}]. Types: text, voice, announcement, forum, stage. At most 50 roles and 100 channels. A Back Up Server file works too.
Default: `{
"roles": [
{
"name": "Support",
"color": "#5865f2",
"hoist": true
},
{
"name": "Customer",
"color": "#57f287"
}
],
"categories": [
{
"name": "Shop",
"channels": [
{
"name": "products",
"topic": "What we sell"
},
{
"name": "reviews",
"topic": "Tell us how it went"
}
]
},
{
"name": "Tickets",
"private": true,
"allowRoles": [
"Support"
],
"channels": [
{
"name": "ticket-logs",
"private": true,
"allowRoles": [
"Support"
]
}
]
}
]
}`.
Outputs and next steps
out: Continue to the next step.failed: The operation failed; provide a safe error response.Test and troubleshoot
Check caller permissions, bot permissions, channel overrides and role hierarchy separately. Test delete/ban/permission changes in a dedicated server rather than against production data.
Save, validate and publish. Perform one real test and read the first relevant log error. [Testing](/docs/flow-testing) · [Variables](/docs/flow-variables) · [Permissions](/docs/flow-permissions).
Save, validate and publish. Perform one real test and read the first relevant log error. [Testing](/docs/flow-testing) · [Variables](/docs/flow-variables) · [Permissions](/docs/flow-permissions).