Skip to content

Conversation

@almeidx
Copy link
Member

@almeidx almeidx commented Nov 26, 2025

Supersedes #11303

Closes #11308

Made the chatInputCommandPredicate validate the full structure, including options, so users that may be using this predicate can actually validate Chat Input Commands

@vercel
Copy link

vercel bot commented Nov 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
discord-js Skipped Skipped Nov 26, 2025 4:10pm
discord-js-guide Skipped Skipped Nov 26, 2025 4:10pm

@codecov
Copy link

codecov bot commented Nov 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.09%. Comparing base (5dea946) to head (4772957).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11304      +/-   ##
==========================================
+ Coverage   44.97%   45.09%   +0.11%     
==========================================
  Files         317      317              
  Lines       18222    18259      +37     
  Branches     1817     1822       +5     
==========================================
+ Hits         8196     8233      +37     
  Misses      10013    10013              
  Partials       13       13              
Flag Coverage Δ
builders 81.36% <100.00%> (+0.20%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vercel vercel bot temporarily deployed to Preview – discord-js-guide November 26, 2025 16:07 Inactive
@vercel vercel bot temporarily deployed to Preview – discord-js November 26, 2025 16:07 Inactive
@almeidx almeidx force-pushed the refactor/validation-on-chatinputcommand branch from 2f710d4 to 18c8ae9 Compare November 26, 2025 16:09
@vercel vercel bot temporarily deployed to Preview – discord-js-guide November 26, 2025 16:09 Inactive
@vercel vercel bot temporarily deployed to Preview – discord-js November 26, 2025 16:09 Inactive
@almeidx almeidx force-pushed the refactor/validation-on-chatinputcommand branch from 18c8ae9 to 4772957 Compare November 26, 2025 16:10
@vercel vercel bot temporarily deployed to Preview – discord-js November 26, 2025 16:10 Inactive
@vercel vercel bot temporarily deployed to Preview – discord-js-guide November 26, 2025 16:10 Inactive
Comment on lines +51 to +52
const choiceStringPredicate = z.object({
...choiceBasePredicate.shape,
Copy link
Member

Choose a reason for hiding this comment

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

what's the reason for not using extend() here and in the following predicates?

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

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Refactor chat input command validation overrides

4 participants