-
-
Notifications
You must be signed in to change notification settings - Fork 4k
feat: split CommandInteractionOptionResolver
#8439
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
base: main
Are you sure you want to change the base?
feat: split CommandInteractionOptionResolver
#8439
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
packages/discord.js/src/structures/ChatInputCommandInteractionOptionResolver.js
Outdated
Show resolved
Hide resolved
I don't see how this split is correct? Why are the methods for subcommands, subcommand groups and the primitive types (string, number, integer, boolean) removed from the AutocompleteInteractionOptionResolver? They should all still work, as the value doesn't require any resolved structures. I thought the issue was only that Discord doesn't send resolved data for Users/GuildMembers, Roles and Channels in AutocompleteInteraction. Also this is 100% breaking. You changed the interface. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@@ -53,7 +53,7 @@ class AutocompleteInteraction extends BaseInteraction { | |||
* The options passed to the command | |||
* @type {CommandInteractionOptionResolver} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @type {CommandInteractionOptionResolver} | |
* @type {AutocompleteInteractionOptionResolver} |
@@ -15,7 +15,7 @@ class ChatInputCommandInteraction extends CommandInteraction { | |||
* The options passed to the command. | |||
* @type {CommandInteractionOptionResolver} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @type {CommandInteractionOptionResolver} | |
* @type {ChatInputCommandInteractionOptionResolver} |
@@ -18,7 +18,7 @@ class ContextMenuCommandInteraction extends CommandInteraction { | |||
* The target of the interaction, parsed into options | |||
* @type {CommandInteractionOptionResolver} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @type {CommandInteractionOptionResolver} | |
* @type {ContextMenuCommandInteractionOptionResolver} |
No idea if this PR is still meant to be implemented.
|
Please describe the changes this PR makes and why it should be merged:
This PR splits
CommandInteractionOptionResolver
to make methods visible in the docs only what are available in the context.Status and versioning classification: