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
add attachment application command option type #4253
add attachment application command option type #4253
Conversation
@MinnDevelopment i messed that PR up lol but i think this one should be alright |
Just so you know, it usually isn't necessary to open a new PR because there are too many commits. |
yeah a few of my friends just told me that lol. should have consulted them before doing this |
For how long are attachments from command options available on the CDN? I think if there is a time window, that should be mentioned in the docs. |
This is a good question however I am unsure about this myself as I have not been able to successfully send an attachment due to this feature not being implemented in the discord client yet. Hopefully a staff member can enlighten us? |
Thanks for doing this, much appreciated! |
My pleasure |
it's the same pr as #4251 but reverts the
package-lock.json
changeI tried to set an option with
type: 11
today right after the discord devs stage where they announced the newATTACHMENT
type for application commands, I assumedtype: 11
is this newATTACHMENT
type and created this PR.The data structure of the new interaction data object and how I found it is written in this gist