templates_diff
Detect channel and role drift between a Guild Template and its source guild before syncing. Compares permissions and settings, and flags items needing manual review.
Instructions
Purpose: Detect channel and role drift between a Guild Template snapshot and its source guild before templates_sync.
Safety: The source guild ID must match guild_id; otherwise the tool refuses to read that guild. Raw names are returned only in fenced untrusted_text. It also compares matched-role permission bitfields, matched-channel settings present in both payloads, and mappable permission overwrites. Discord-managed bot/integration roles are excluded because Guild Templates do not serialize them. Discord News and Stage channels are reported separately when the official snapshot cannot represent them. Missing optional fields or unmapped overwrite subjects require manual review rather than a false claim of equality.
Returns: {template, source_guild_matches, drift, untrusted_text}. This tool is read-only and never syncs the template.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild_id | Yes | Guild expected to be the template source guild | |
| template_code | Yes | Guild Template code to compare |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||