Skip to content

Document prefix command setup prerequisites - #158

Closed
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/engineering-documentation-updates-6387
Closed

cursor[bot] wants to merge 1 commit into
mainfrom
cursor/engineering-documentation-updates-6387

Conversation

@cursor

@cursor cursor Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Update prefix command documentation in docs/commands.md, docs/configuration.md, and docs/getting-started.md.
  • Clarify that prefix command execution requires both handler.commands.prefix: true and Discord Message Content Intent.
  • Document fallback/default prefix behavior and the MongoDB dependency for per-guild custom prefixes.

Codepaths covered

  • src/handlers/commands.js loading prefix modules into client.collection.prefixcommands
  • src/events/Guild/messageCreate.js gating execution on handler.commands.prefix, reading message.content, and resolving per-guild prefixes
  • src/class/ExtendedClient.js requesting GatewayIntentBits.MessageContent
  • src/schemas/GuildSchema/guildschemas storage for custom prefixes

Key knowledge gaps addressed

  • Prefix modules can load while execution remains disabled by configuration.
  • Discord's Message Content Intent is required outside of repo config.
  • Custom prefixes depend on MongoDB; installs with database access disabled fall back to handler.prefix.

Verification

  • git diff --check
  • npm test (48 passing tests)

Prefix command docs verification summary

Open in Web View Automation 

Co-authored-by: Daan Vrieling <contact@zvapor.xyz>
@zVapor-Dev
zVapor-Dev marked this pull request as ready for review September 16, 2026 22:51
@zVapor-Dev zVapor-Dev closed this Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants