discord.js
discord.js copied to clipboard
feat: split `CommandInteractionOptionResolver`
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:
- 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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
discord-js | ✅ Ready (Inspect) | Visit Preview | Aug 10, 2022 at 5:51PM (UTC) |
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.
Sweden