Tic
Check if embed, actionRow etc. has been modified
Hello
With the InteractionResponseModifyBuilder, we can define actionRow, embeds etc.
However, I would like to avoid to send the same content to the API (to reduce network interaction)
Need:
So if my message had 2 embeds and 2 actionRows, but only the actionRows are modified since the last rendering, the request must send only the update about actionRows and not Embeds.
So naively, I thought to verify with equals the old and new actionRows built, but that not works. For example
have you a better solution to do that?
82 replies
Publish multiplatform library (not Discord bot)
Hello
This is the list of supported platform of my lib:
I'm using the plugin https://github.com/gradle-nexus/publish-plugin to publish my lib in maven central
However, when I check the availabled action, I can publish for:
JVM
JS
WasmJS
MingwX64
LinuxX64
LinuxArm64
But as you can see, the targets:
Macos
TvOsSimulatorArm64
TsosX64
WatchosArm32
etc.
Are not avaiabled in the commands list.
For your lib, how do you publish it with these missing targets? Should I change the plugin used?
30 replies
Support of native targets (not Discord bot)
Hello
I tried to add the support of native targets (not for my discord bot), so I have:
(code in comment)
However, I have the following error:
Do you have an idea why I have this error.
That's not appears with the code applied:
5 replies
Avoid to re-render buttons and other things
Hello
What's the best solution to avoid, during an interaction, sending to much thing that already rendered and not modified
For example, if I have a embed with 2 buttons, but I modified only the embed, I would like to avoid to render button
Same thing if that the buttons are modified
For the moment, I stored all embedBuilder etc. And try to compare with the new ones to verify the equality but I don't know if it's the best solution with kord
1 replies
Multiplatform interface problem
Hello
Maybe you already have this type of issue and can help me
I have the error:
With my interface:
And
ComponentMessageBuilder
& RowComponentMessageBuilder
are interface that extend
I tried to override the function and put @JsName but it's not allowed on override functions3 replies
Interaction: Valid action without modify interaction message
Hello
When a user click on a button in a RowAction, I would like to do something in my program, with no modification to the interaction message.
For the moment, I do:
interaction.deferPublicMessageUpdate().edit { }
with nothing in it. That works but I think that's not the clean solution
What's the good practice to do that?3 replies
Event when ephemeral message is deleted by user
Hello
All is in title, but, if I need to clean some things in memory when a message is deleted, in public interaction, that's simple, but for ephemral interaction. Is there a event to detect that?
Thanks
4 replies
Menu & Edit response
Hello
I'm using a Menu to select element. When I select one element, I'm using
response.edit
to add an embed.
But I have two problems:
- My embed appears but I have the error message "Interaction failed"
- How can I remove the previous menu ? (it stay present below the embed)3 replies
Align field in embed
Hello
I have 4 categories to put in an embed.
For that, I'm using field.
However, I would like to inline the first two together, and the last together.
Like
I tried to add an empty field after the
2.
but the result is weird like:
The last category is move below the empty field5 replies
Store element in current coroutine context
Hello !
I want to store a temporary redis connection in the current coroutine context to use it later / avoid multiple new connections.
Previously, I had this code :
And my code works.
I changed to store the current connection like :
And I have a new error:
(This message in thread)
How can I use the new current coroutine context with the flow?
2 replies