Skip to content

fix case sensitivity of the messageCreate command if unprefixed is true - #405

Open
Daaisukidayo wants to merge 4 commits into
tryforge:devfrom
Daaisukidayo:patch
Open

fix case sensitivity of the messageCreate command if unprefixed is true#405
Daaisukidayo wants to merge 4 commits into
tryforge:devfrom
Daaisukidayo:patch

Conversation

@Daaisukidayo

Copy link
Copy Markdown
  • Fixed the case where the messageCreate command was case sensitive if unprefixed was set to true
  • Added MessageContent to the intents array
  • Updated event version

@xNickyDev xNickyDev added not tested Bug has not been reproduced invalid This doesn't seem right blocked patch labels Aug 19, 2026
@Daaisukidayo

Daaisukidayo commented Aug 19, 2026

Copy link
Copy Markdown
Author

All tests performed manually in Discord using the eval command. Prefix was either ! or omitted, depending on the case being tested.

Command name casing (original bug)

  • Eval test (capitalized, no prefix, unprefixed: true) - eval triggers correctly
  • eval test - still triggers as expected

Prefix handling

  • !eval test (matching case) - works
  • Message with no prefix, while prefixed (unprefixed: false or omitted) commands exist - command does not trigger
  • !e test - eval command resolves correctly via its alias e

unprefixed semantics

  • eval with unprefixed: true works without a prefix
  • Same command also works with the ! prefix

Argument (args) handling

  • !eval testeval receives args = ["test"] (command name correctly stripped)
  • A nameless/catch-all handler matching the same message receives the full, unstripped ["eval", "test"] instead of a truncated array - confirms args are sliced independently per command rather than mutated on a shared array
  • !eval with multiple consecutive spaces between tokens - whitespace collapses correctly, no empty tokens in args

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked invalid This doesn't seem right not tested Bug has not been reproduced patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants