-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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 support for entitlement (App Subscriptions) #9856
Comments
Is there any way to temporarily support this? I was trying to do something like: return interaction.reply({
body: {
type: 10,
data: {}
}
}); But in InteractionResponses.js, it hardcodes the body and type even if you pass it in: await this.client.rest.post(Routes.interactionCallback(this.id, this.token), {
body: {
type: InteractionResponseType.ChannelMessageWithSource,
data,
},
files,
auth: false,
}); |
dependency: discordjs/discord-api-types#833 |
The body is hard coded because each method is a specific response type. We don't support overwriting the body via these, but you're welcome to make the |
FWIW, the function signature in Typescript allows you to pass a body in to this. Should that be changed with the PR to hide it? |
Which application or package is this feature request for?
discord.js
Feature
New entitlement events:
https://discord.com/developers/docs/monetization/entitlements#gateway-events
PREMIUM_REQUIRED Interaction Response
https://discord.com/developers/docs/monetization/entitlements#using-entitlements-in-interactions
Entitlements class/endpoints
https://discord.com/developers/docs/monetization/entitlements#entitlement-object
Ideal solution or implementation
Alternative solutions or implementations
No response
Other context
No response
The text was updated successfully, but these errors were encountered: