feat: add privileged intents kill switch #40

Merged
isyuricunha merged 1 commit from chore/privileged-intents-env-switch into main 2026-09-03 19:56:46 +00:00
isyuricunha commented 2026-09-03 19:52:52 +00:00 (Migrated from github.com)

Summary

  • add DISABLE_PRIVILEGED_INTENTS as an emergency kill switch for Discord privileged gateway intents
  • keep MessageContent and GuildMembers enabled by default; omit only those two when the env is true
  • log degraded mode at startup and document the variable across env examples and Compose variants
  • add focused tests for enabled/disabled intent sets

Behavior

  • unset / false: normal privileged intents are requested
  • true: MessageContent and GuildMembers are omitted; all other intents remain unchanged

Validation

  • pnpm --filter @yuebot/bot lint
  • pnpm --filter @yuebot/bot type-check
  • pnpm --filter @yuebot/bot test (189 tests: 187 passed, 2 skipped, 0 failed)
  • pnpm --filter @yuebot/bot build
  • git diff --check

No merge or deployment performed.

## Summary - add `DISABLE_PRIVILEGED_INTENTS` as an emergency kill switch for Discord privileged gateway intents - keep `MessageContent` and `GuildMembers` enabled by default; omit only those two when the env is `true` - log degraded mode at startup and document the variable across env examples and Compose variants - add focused tests for enabled/disabled intent sets ## Behavior - unset / `false`: normal privileged intents are requested - `true`: `MessageContent` and `GuildMembers` are omitted; all other intents remain unchanged ## Validation - `pnpm --filter @yuebot/bot lint` - `pnpm --filter @yuebot/bot type-check` - `pnpm --filter @yuebot/bot test` (189 tests: 187 passed, 2 skipped, 0 failed) - `pnpm --filter @yuebot/bot build` - `git diff --check` No merge or deployment performed.
cristiancamacho33121-lab (Migrated from github.com) reviewed 2026-09-04 06:51:28 +00:00
cristiancamacho33121-lab (Migrated from github.com) left a comment

Nice

Nice
Sign in to join this conversation.
No description provided.