Skip to content

fix: message builders #10802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 25, 2025
Merged

fix: message builders #10802

merged 3 commits into from
Apr 25, 2025

Conversation

almeidx
Copy link
Member

@almeidx almeidx commented Mar 15, 2025

  • Added clearParse, clearRoles, and clearUsers methods to the AllowedMentionsBuilder, since passing an empty array and omitting the these fields behave differently
  • Strictened assertions
  • Removed AttachmentBuilder#clearId, as it is a required field
  • Changed updater functions return type to void
  • Added missing MessageBuilder#setEmbeds
  • Added missing MessageReferenceBuilder#setFailIfNotExists
  • Improve/fix documentation
  • Consistency:tm:

Copy link

vercel bot commented Mar 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
discord-js ⬜️ Ignored (Inspect) Visit Preview Apr 25, 2025 8:47pm
discord-js-guide ⬜️ Ignored (Inspect) Visit Preview Apr 25, 2025 8:47pm

@almeidx almeidx force-pushed the fix/message-builders branch from 1cdd834 to ec66fee Compare March 15, 2025 20:11
@Jiralite Jiralite added this to the builders 2.0.0 milestone Mar 15, 2025
Copy link

codecov bot commented Mar 15, 2025

Codecov Report

Attention: Patch coverage is 72.72727% with 21 lines in your changes missing coverage. Please review.

Project coverage is 44.60%. Comparing base (d81b4be) to head (19cd9f0).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/builders/src/messages/AllowedMentions.ts 25.00% 9 Missing ⚠️
packages/builders/src/messages/Message.ts 68.96% 9 Missing ⚠️
packages/builders/src/messages/MessageReference.ts 66.66% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10802      +/-   ##
==========================================
+ Coverage   44.43%   44.60%   +0.16%     
==========================================
  Files         260      260              
  Lines       15329    15363      +34     
  Branches     1544     1549       +5     
==========================================
+ Hits         6812     6852      +40     
+ Misses       8505     8499       -6     
  Partials       12       12              
Flag Coverage Δ
brokers 31.41% <ø> (ø)
builders 80.49% <72.72%> (+0.41%) ⬆️
collection 100.00% <ø> (ø)
formatters 99.63% <ø> (ø)
proxy 65.88% <ø> (ø)
rest 87.76% <ø> (ø)
util 43.28% <ø> (ø)
utilities 100.00% <ø> (ø)
voice 70.90% <ø> (ø)
ws 36.29% <ø> (ø)

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.

@github-project-automation github-project-automation bot moved this from Todo to Review in Progress in discord.js Mar 15, 2025
Copy link
Member

@didinele didinele left a comment

Choose a reason for hiding this comment

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

thanks

Qjuh
Qjuh previously requested changes Apr 20, 2025
@almeidx almeidx force-pushed the fix/message-builders branch from ec66fee to 6eca42c Compare April 23, 2025 11:31
@almeidx almeidx dismissed stale reviews from Qjuh and vladfrangu April 23, 2025 11:33

Resolved

@almeidx almeidx requested review from Qjuh and vladfrangu April 23, 2025 11:33
@Jiralite
Copy link
Member

Please resolve conflicts!

almeidx added 2 commits April 23, 2025 18:41
- Added `clearParse`, `clearRoles`, and `clearUsers` methods to the `AllowedMentionsBuilder`, since passing an empty array and omitting the these fields behave differently
- Strictened assertions
- Removed `AttachmentBuilder#clearId`, as it is a required field
- Added missing `MessageBuilder#setEmbeds`
- Added missing `MessageReferenceBuilder#setFailIfNotExists`
- Improve/fix documentation
- Consistency:tm:
@almeidx almeidx force-pushed the fix/message-builders branch from 6eca42c to 6aae36c Compare April 23, 2025 17:42
@github-project-automation github-project-automation bot moved this from Review in Progress to Review Approved in discord.js Apr 25, 2025
@kodiakhq kodiakhq bot merged commit 8f37527 into main Apr 25, 2025
25 checks passed
@kodiakhq kodiakhq bot deleted the fix/message-builders branch April 25, 2025 20:52
@github-project-automation github-project-automation bot moved this from Review Approved to Done in discord.js Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants