Apply blueprint
apply_blueprintApplies a declarative blueprint to a Discord server by diffing live roles and channels, creating or updating only what differs. Supports dry-run and safe reconciliation with no deletions.
Instructions
Diff a declarative blueprint against a guild's live roles and channels, then apply the difference in order (roles -> role positions -> categories -> channels -> permission overwrites). Nothing is ever deleted; live entities missing from the blueprint are reported as orphans. mode=create_only (default) only creates missing entities; mode=reconcile also updates entities that differ. With dry_run=true the full ordered plan is returned and no write reaches Discord. Applying the same blueprint twice yields zero operations the second time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | create_only | |
| dry_run | No | ||
| guild_id | Yes | ||
| blueprint | Yes |