Skip to content
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

feat: add chatInputApplicationCommandMention formatter #8546

Merged
merged 2 commits into from Sep 3, 2022

Conversation

almeidx
Copy link
Member

@almeidx almeidx commented Aug 22, 2022

Please describe the changes this PR makes and why it should be merged:

  • Added chatInputApplicationCommandMention() formatted in /builders
  • Added ApplicationCommand#toString(), which will use the function mentioned above to return the commands mention

Not going to add the mention to ApplicationCommand#toString() due to not being able to have a consistent return type. (The mentions only apply to Chat Input commands)

Upstream:

Status and versioning classification:

  • This PR changes the library's interface (methods or parameters added)

@vercel
Copy link

vercel bot commented Aug 22, 2022

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

Name Status Preview Updated
discord-js ✅ Ready (Inspect) Visit Preview Sep 3, 2022 at 7:17AM (UTC)

@codecov
Copy link

codecov bot commented Aug 22, 2022

Codecov Report

Merging #8546 (37ee689) into main (1d460e0) will increase coverage by 0.10%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #8546      +/-   ##
==========================================
+ Coverage   86.36%   86.47%   +0.10%     
==========================================
  Files          87       87              
  Lines        8610     8679      +69     
  Branches     1106     1110       +4     
==========================================
+ Hits         7436     7505      +69     
  Misses       1132     1132              
  Partials       42       42              
Flag Coverage Δ
builders 100.00% <100.00%> (ø)
collection 100.00% <ø> (ø)
proxy 74.10% <ø> (ø)
rest 92.00% <ø> (ø)
utilities 100.00% <ø> (ø)
voice 63.86% <ø> (ø)
ws 60.42% <ø> (ø)

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

Impacted Files Coverage Δ
packages/builders/src/messages/formatters.ts 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@RedGuy12
Copy link
Contributor

Upstream PR merged

@kodiakhq kodiakhq bot merged commit d08a57c into discordjs:main Sep 3, 2022
@vercel vercel bot temporarily deployed to Preview September 3, 2022 07:17 Inactive
@almeidx almeidx deleted the builders/command-mention branch September 3, 2022 07:25
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.

None yet

6 participants