Skip to content
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

Entitlements missing from INTERACTION_CREATE payloads #7364

Open
Misha-133 opened this issue Jan 24, 2025 · 1 comment
Open

Entitlements missing from INTERACTION_CREATE payloads #7364

Misha-133 opened this issue Jan 24, 2025 · 1 comment
Labels
bug premium-apps Feedback and bug reports on Premium Apps

Comments

@Misha-133
Copy link
Contributor

Description

According to the documentation, one time purchase entitlements should be included with the INTERACTION_CREATE payload.

We had at least 3 users report this issue in our lib's support server - real purchases of SKUs were missing from payloads, while the could be successfully fetched via a REST call; I managed to reproduce this by purchasing SKUs in app test mode.

This issue may be related to #7038, but that one claims to be fixed.

Steps to Reproduce

  • Purchase a durable SKU in app test mode
  • call GET /applications/{id}/entitlements?user_id={userId}
    • the entitlements are actually returned in the response
  • The interaction payload will be missing the entitlements
[INTERACTION_CREATE] : 
{
  "version": 1,
  "type": 2,
  "token": "",
  ...
  "entitlements": [],
  "entitlement_sku_ids": [],
  ...

Expected Behavior

Entitlements actually included with the INTERACTION_CREATE payload

Current Behavior

Entitlements missing from the INTERACTION_CREATE payload

Screenshots/Videos

e is an interaction object, parsed from the json payload.
GetEntitlementsAsync calls the List Entitlements endpoint.
Image
the interaction payload has 0 entitlements. rest call returns 2.

Client and System Information

API v10 / Discord.NET

@Misha-133 Misha-133 added bug premium-apps Feedback and bug reports on Premium Apps labels Jan 24, 2025
@ithinkimcats
Copy link

I'm having the same issue (JDA 5.2.2). Seeing as this can involve real purchases, and bots are required to use Discord's monetization API, I feel like this is a pretty significant bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug premium-apps Feedback and bug reports on Premium Apps
Projects
None yet
Development

No branches or pull requests

2 participants