How do monetization stuffs work?
I'm trying to monetize my bot/app how does this work with kordex?
35 Replies
I don't believe Kord has support for the relevant APIs?
I'm not sure how it works in general, honestly
So I need to set a
skuId
on an action button@Kord Team Members - have the monetisation APIs been added to Kord yet?
And I guess this API is relevant https://discord.com/developers/docs/monetization/entitlements
@gdude Also not sure if this is happening to me or everyone, but when you search it just appends a hash to the current url and doesn't navigate you to the correct search page https://docs.kordex.dev/
yeah I know
there's not much I can do about that
it's a bug in Writerside
Seems a pretty fundamental bug on their end lol
it's technically still beta
You're always ahead of the curve with the new tools
Looks like there is a PR open for monetization https://github.com/kordlib/kord/pull/932
Unknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View
So do I need to handle it with a rest client?
I'm guessing
there's no simple way to make this work
you might have to wait for the PR
(or contribute to it)
I don't see any unresolved comments
aaggh ffs this is my fault I should have checked if a library has all the features I need before adopting it
it will have those features at some point
I suggest working with the Kord team to get what you need added
once Kord supports the APIs I can update KordEx for the components
I can do, but I was hoping to get this bot finished today
And it's going to be less work to start from scratch with another library
JDA and D4J don't seem to have it either
it's new
it takes a while for libraries to update
It's 9 months old
no, it's 3 months old, and the buttons are about 1 month old
see #discord-news
I've never worked on an open source library idek how to contribute lol
Do I need to fork the guy who started the PRs repo
that was @viztea by the looks of it
it seems like the build is failing, but maybe the Kord team can provide some insight later on
they seem busy at the moment
Well hopefully can hear something back later its only 10am where they're from
Unknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View
So I'm implementing a snapshot from viztea, how can I use these new objects with kordex?
It says each interaction has an entitlements object, but I don't see it anywhere.
You need to do a dependency override
I honestly haven't got a clue how to do that
but you can tell Gradle to exclude specific transient dependencies
basically you need to exclude the Kord dependency provided by KordEx, and then provide a new Kord dependency based on viztea's builds
It's like this
But I have no idea how that looks when you use toml deps
probably the same but with the alias in the first argument to the dependency configuration
Unknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View
Ah great
And do I need to
interactionFor(event)
to get the Kord interaction object?
@viztea your branch seems to rely on a custom ktor build tooUnknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View
š
Unknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View
ktor is another dep provided by kordex yeah
I guess I'll just work on my website instead for now
š
Unknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View
No problem š
Unknown Userā¢6mo ago
Message Not Public
Sign In & Join Server To View