Skip to content

fix(discord): validate integer env values strictly - #926

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/discord-strict-env-integers
Aug 3, 2026
Merged

fix(discord): validate integer env values strictly#926
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/discord-strict-env-integers

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • require Discord integer environment values to use decimal digits only
  • reject exponent, hexadecimal, signed, fractional, whitespace-padded, and unsafe values
  • preserve existing safe fallback behavior for invalid configuration

Validation

  • vitest run packages/bots/discord/src/index.test.ts (10 tests passed)
  • tsc -p packages/bots/discord/tsconfig.json --noEmit
  • git diff --check

Copilot AI review requested due to automatic review settings August 1, 2026 21:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: git fetch upstream master && git rebase upstream/master.

1 similar comment
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: git fetch upstream master && git rebase upstream/master.

@ralyodio
ralyodio merged commit d09bebe into profullstack:master Aug 3, 2026
5 checks passed
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.

3 participants