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

types: omit unnecessary methods from <ContextMenuCommandInteraction>.options #10003

Merged
merged 4 commits into from
Dec 1, 2023

Conversation

Qjuh
Copy link
Contributor

@Qjuh Qjuh commented Nov 27, 2023

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

Omits the getUser and getMember methods from the CommandOptionResolver on a MessageContextMenuCommandInteraction and similar for getMessage on UserContextMenuCommandInteraction.

Also omits getAttachment on both as it seems to not have been omitted when it got added to the resolver.

Supersedes #9606

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

@Qjuh Qjuh requested a review from a team as a code owner November 27, 2023 18:11
Copy link

vercel bot commented Nov 27, 2023

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 Dec 1, 2023 3:39pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
discord-js-guide ⬜️ Ignored (Inspect) Visit Preview Dec 1, 2023 3:39pm

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.

Can you add tests?

@Qjuh Qjuh requested a review from Jiralite November 28, 2023 16:44
@Qjuh Qjuh force-pushed the fix/command-option-resolver branch from c1bd547 to ac8a62b Compare November 30, 2023 22:19
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.

4 participants