How do monetization stuffs work?

I'm trying to monetize my bot/app how does this work with kordex?
35 Replies
gdude
gdudeā€¢5mo ago
I don't believe Kord has support for the relevant APIs? I'm not sure how it works in general, honestly
Shaun
ShaunOPā€¢5mo ago
So I need to set a skuId on an action button
gdude
gdudeā€¢5mo ago
@Kord Team Members - have the monetisation APIs been added to Kord yet?
Shaun
ShaunOPā€¢5mo ago
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/
gdude
gdudeā€¢5mo ago
yeah I know there's not much I can do about that it's a bug in Writerside
Shaun
ShaunOPā€¢5mo ago
Seems a pretty fundamental bug on their end lol
gdude
gdudeā€¢5mo ago
it's technically still beta
Shaun
ShaunOPā€¢5mo ago
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
Unknown Userā€¢5mo ago
Message Not Public
Sign In & Join Server To View
Shaun
ShaunOPā€¢5mo ago
So do I need to handle it with a rest client? I'm guessing
gdude
gdudeā€¢5mo ago
there's no simple way to make this work you might have to wait for the PR (or contribute to it)
Shaun
ShaunOPā€¢5mo ago
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
gdude
gdudeā€¢5mo ago
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
Shaun
ShaunOPā€¢5mo ago
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
gdude
gdudeā€¢5mo ago
it's new it takes a while for libraries to update
Shaun
ShaunOPā€¢5mo ago
It's 9 months old
gdude
gdudeā€¢5mo ago
no, it's 3 months old, and the buttons are about 1 month old see #discord-news
Shaun
ShaunOPā€¢5mo ago
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
gdude
gdudeā€¢5mo ago
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
Shaun
ShaunOPā€¢5mo ago
Well hopefully can hear something back later its only 10am where they're from
Unknown User
Unknown Userā€¢5mo ago
Message Not Public
Sign In & Join Server To View
Shaun
ShaunOPā€¢5mo ago
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.
gdude
gdudeā€¢5mo ago
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
Shaun
ShaunOPā€¢5mo ago
It's like this
implementation("com.mysql:mysql-connector-j:9.0.0") {
exclude(group = "com.google.protobuf", module = "protobuf-java")
}
implementation("com.mysql:mysql-connector-j:9.0.0") {
exclude(group = "com.google.protobuf", module = "protobuf-java")
}
But I have no idea how that looks when you use toml deps
gdude
gdudeā€¢5mo ago
probably the same but with the alias in the first argument to the dependency configuration
Unknown User
Unknown Userā€¢5mo ago
Message Not Public
Sign In & Join Server To View
Shaun
ShaunOPā€¢5mo ago
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 too
Unknown User
Unknown Userā€¢5mo ago
Message Not Public
Sign In & Join Server To View
Shaun
ShaunOPā€¢5mo ago
šŸ˜­
Unknown User
Unknown Userā€¢5mo ago
Message Not Public
Sign In & Join Server To View
gdude
gdudeā€¢5mo ago
ktor is another dep provided by kordex yeah
Shaun
ShaunOPā€¢5mo ago
I guess I'll just work on my website instead for now šŸ˜‚
Unknown User
Unknown Userā€¢5mo ago
Message Not Public
Sign In & Join Server To View
Shaun
ShaunOPā€¢5mo ago
No problem šŸ˜›
Unknown User
Unknown Userā€¢5mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server