kord
kord copied to clipboard
Implement Monetization
Docs: https://discord.com/developers/docs/monetization/overview
I've tested this code to the best of my ability, i.e., only the pagination for the list entitlements endpoint is untested and I wasn't able to get entitlement events to work, they might only work with real subscriptions 🤷🏼
forgot to implement the premium required action interaction response :')
also some tests fail, now that entitlements is no longer optional in the interaction object, updating the test data should be good enough
also some tests fail, now that
entitlementsis no longer optional in the interaction object, updating the test data should be good enough
With an empty array or should I write mock data?
also some tests fail, now that
entitlementsis no longer optional in the interaction object, updating the test data should be good enoughWith an empty array or should I write mock data?
empty should be enough, do as you see fit
MessageType.PurchaseNotification should probably be added too, see https://github.com/discord/discord-api-docs/pull/6927
also relevant: https://github.com/discord/discord-api-docs/pull/7109 and https://github.com/discord/discord-api-docs/pull/6959 (40018 and 40019)
just have to add subscriptions (https://github.com/discord/discord-api-docs/pull/7109) and then this will finally be done
just have to add subscriptions (discord/discord-api-docs#7109) and then this will finally be done
just missing in core now