-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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(ApplicationCommands): attachment application command option type #7123
Conversation
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.
You forgot to add the new option to ApplicationCommand#_optionEquals, #transformOption, ApplicationCommandOption, ApplicationCommandOptionData, Constants#ApplicationCommandOptionType, and probably some typings although I'm not sure on that one
I have marked this pr as a draft for now since I am still unsure about the Interaction structure, I will update this PR soon |
Please add discord/discord-api-docs#4253 to the PR description btw |
done! |
closing this in favor of #7200 |
Please describe the changes this PR makes and why it should be merged:
Adds the new
ATTACHMENT
command option type and also adds patching forfilename
inMessageAttachment#_patch
getAttachment
insrc/structures/CommandInteractionOptionResolver
attachments
toBaseCommandInteraction#transformResolved
attachment
toBaseCommandInteraction#transformOption
typings/enums.d.ts
typings/index.d.ts
Status and versioning classification:
This PR relies on This PR relies on discordjs/discord-api-types#272 and discord/discord-api-docs#4253