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(InteractionResponses)!: support with_response query parameter #10499

Merged
merged 19 commits into from
Nov 28, 2024

Conversation

monbrey
Copy link
Member

@monbrey monbrey commented Sep 12, 2024

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

/core done in #10512

Upstream: discord/discord-api-docs#7106

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating
  • This PR changes the library's interface (methods or parameters added)

@monbrey monbrey requested review from a team and iCrawl as code owners September 12, 2024 03:59
Copy link

vercel bot commented Sep 12, 2024

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

Name Status Preview Comments Updated (UTC)
discord-js ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 28, 2024 8:28am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
discord-js-guide ⬜️ Ignored (Inspect) Visit Preview Nov 28, 2024 8:28am

@Jiralite
Copy link
Member

Jiralite commented Sep 12, 2024

This also required a discord-api-types version bump

We'll wait for #10488 before this one lands.

Copy link
Member

@Jiralite Jiralite left a comment

Choose a reason for hiding this comment

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

I see the interaction callback resource contains any message created. If this is a good enough alternative to options.fetchReply, I say we should deprecate it.

packages/discord.js/src/structures/InteractionCallback.js Outdated Show resolved Hide resolved
packages/discord.js/src/structures/InteractionCallback.js Outdated Show resolved Hide resolved
packages/discord.js/src/structures/InteractionCallback.js Outdated Show resolved Hide resolved
packages/discord.js/package.json Outdated Show resolved Hide resolved
packages/discord.js/src/index.js Show resolved Hide resolved
Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 35.49%. Comparing base (cda8d88) to head (8b69bd4).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10499      +/-   ##
==========================================
+ Coverage   35.48%   35.49%   +0.01%     
==========================================
  Files         228      228              
  Lines       14308    14303       -5     
  Branches     1254     1254              
==========================================
  Hits         5077     5077              
+ Misses       9187     9182       -5     
  Partials       44       44              
Flag Coverage Δ
guide 0.54% <ø> (ø)

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.

@Jiralite
Copy link
Member

Jiralite commented Oct 2, 2024

Please resolve conflicts!

Copy link
Member

@Jiralite Jiralite left a comment

Choose a reason for hiding this comment

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

Please resolve conflicts!

Copy link
Member

@Jiralite Jiralite left a comment

Choose a reason for hiding this comment

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

showModal() on CommandInteraction is missing options. I'm pretty sure it should be there, no?

packages/discord.js/typings/index.d.ts Outdated Show resolved Hide resolved
packages/discord.js/typings/index.d.ts Outdated Show resolved Hide resolved
packages/discord.js/typings/index.d.ts Outdated Show resolved Hide resolved
packages/discord.js/src/structures/InteractionCallback.js Outdated Show resolved Hide resolved
packages/discord.js/typings/index.d.ts Outdated Show resolved Hide resolved
packages/discord.js/typings/index.d.ts Outdated Show resolved Hide resolved
@Jiralite Jiralite changed the title feat(InteractionResponses): support with_response query parameter feat(InteractionResponses)!: support with_response query parameter Nov 27, 2024
@Jiralite Jiralite requested a review from sdanialraza November 27, 2024 17:24
@Jiralite Jiralite dismissed their stale review November 27, 2024 17:24

Resolved.

packages/discord.js/typings/index.d.ts Outdated Show resolved Hide resolved
packages/discord.js/typings/index.d.ts Outdated Show resolved Hide resolved
@Jiralite Jiralite dismissed their stale review November 27, 2024 22:28

Resolved.

@Jiralite Jiralite self-requested a review November 27, 2024 22:28
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.

Use optional query parameter when posting interaction callbacks
7 participants