Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.54 KB

File metadata and controls

34 lines (26 loc) · 1.54 KB

Testing in Discord

This guide explains how to safely validate Gitcord role automation in a Discord server.

Recommended Test Sequence

  1. Dry-run phase (no Discord role mutations): In your config, set:
    • runtime.mode: "dry-run"
    • runtime.enable_discord_role_updates: false
    • discord.permissions.write: false
      With enable_discord_role_updates: false, run-once will not apply Discord role add/remove even if mode or permissions were mis-set.
  2. Run a sync:
    • python -m ghdcbot.cli --config config/my-org-config.yaml run-once
  3. Review the generated report at <data_dir>/reports/audit.md.
  4. Verify planned role changes and identity mappings are correct.
  5. Live phase (apply role updates): Only after review, set:
    • runtime.mode: "active"
    • runtime.enable_discord_role_updates: true
    • discord.permissions.write: true
  6. Run run-once again and confirm expected role changes in Discord.

Discord Permission Checklist

  • Bot has Manage Roles, View Channels, Send Messages, Embed Links, and Read Message History.
  • Bot role is above any role it should assign/remove.
  • Application has Server Members Intent enabled in Discord Developer Portal.

Bot Command Smoke Tests

  • Identity: /link, /verify-link, /verify, /status, /unlink
  • Metrics: /summary, /pr-info
  • Mentor actions (with configured role): /request-issue, /assign-issue, /issue-requests, /sync

If slash commands do not appear immediately, wait for command sync and ensure the configured discord.guild_id is correct.