kord icon indicating copy to clipboard operation
kord copied to clipboard

Implement Monetization

Open viztea opened this issue 1 year ago • 5 comments

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 🤷🏼

viztea avatar Apr 08 '24 22:04 viztea

forgot to implement the premium required action interaction response :')

viztea avatar Apr 08 '24 22:04 viztea

also some tests fail, now that entitlements is no longer optional in the interaction object, updating the test data should be good enough

lukellmann avatar Apr 10 '24 00:04 lukellmann

also some tests fail, now that entitlements is 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?

viztea avatar Apr 10 '24 01:04 viztea

also some tests fail, now that entitlements is 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?

empty should be enough, do as you see fit

lukellmann avatar Apr 10 '24 01:04 lukellmann

MessageType.PurchaseNotification should probably be added too, see https://github.com/discord/discord-api-docs/pull/6927

lukellmann avatar Aug 15 '24 02:08 lukellmann

also relevant: https://github.com/discord/discord-api-docs/pull/7109 and https://github.com/discord/discord-api-docs/pull/6959 (40018 and 40019)

lukellmann avatar Sep 06 '24 20:09 lukellmann

just have to add subscriptions (https://github.com/discord/discord-api-docs/pull/7109) and then this will finally be done

lukellmann avatar Sep 09 '24 02:09 lukellmann

just have to add subscriptions (discord/discord-api-docs#7109) and then this will finally be done

just missing in core now

lukellmann avatar Sep 09 '24 22:09 lukellmann