Passing data through interactions
Is there a way to pass some data (e.g. message ID) through multiple interactions? I'd like to make a message command, which opens a modal and then uses data from the original message and the modal. I know that there is
customContext
property, but dunno if it's somehow related to that. Or should I just create an object holding my data and store it until used or a certain amount of time is reached?Gradlew run for bot
[SOLVED]The bot works when i run it through Intelij but not when i try the terminal, is this familiar and anyone know how to help?

Managing commands
How do you usually manage your commands, how do you get rid of the old ones? Do you delete every command on startup?
Chat input command trailing lambda separation
I am attempting to write a function which creates chat input command (as a part of a slash command interface).
There are two different methods Kord.createGuildChatInputCommand and Kord.createGlobalChatInputCommand.
The command parameters are exactly the same. How can I separate the command parameters so I only have to write it once?...
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...Easy way to register commands
Is there an annotation or other way to directly define and associate a command with a function?
For example, taken from the wiki:
```kotlin
kord.createGuildChatInputCommand(...
`Unresolved reference: int` when creating input command
I'm following the example in the very sparse wiki, but it doesn't seem to be valid anymore (it was last updated over 2 years ago). I get the error
Unresolved reference: int
, string
seems to not show errors though. Any ideas on how to fix this? Or are there any more complex sample projects I could look at?
```kotlin
kord.createGuildChatInputCommand(
Snowflake(556525343595298817),...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...
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:...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....
Interaction option
Hello
I'm tried to add an option to a Chat input command, but unable to find how to instantiate the type expected for the option
Have you any clue?...
Remove old commands
Hello
I'm creating a new bot with the same token than my previous one and I would like to delete all registered slash command
How can I do that 🤔 ?
Thanks...
Is there a way to use Kord with Springboot to login, run a quick command, and logout for an endpoint
I currently have Kord configured with Springboot, although there's one slight obvious hitch in my plan.
When the endpoint is called and Kord logs in, it suspends itself (as expected) until I disconnect. This means that Spring Boot just hangs and it doesn't actually complete the rest of the request until I manually stop Spring Boot.
Ideally what I would like to do is:...
Extract the thread id from a ThreadCreated message
How do i extract the thread id from a message of type MessageType.ThreadCreated?
Is there a way to serialize PublicMessageInteractionResponseBehavior ?
Hi there.
Is there a way to serialize an instance of PublicMessageInteractionResponseBehavior?
it doesn't seem to have an id field...
Understanding default caching behaviour
I'm trying to understand Kord's default caching behaviour and wanted to confirm the "boundness" of the default generator.
Kord seems to use a concurrent hash map as a generator by default, which is unbounded, right?
KordEx applies a
lruCache
with a default size of 10000
for messages, which seems wise, but plain Kord doesn't?...Possible to detect verification level of user?
Is it possible to know if a Guild Member has their mobile phone registered/verified on a server that has moderation level set to highest (which requires verified mobile)?
Change timeout threshold for requests
I'm trying to do some big attachment uploads to Discord (like, around the 100MiB Nitro boosted limit), and sometimes the message create requests just timeout with:
```kotlin
io.ktor.client.plugins.HttpRequestTimeoutException: Request timeout has expired [url=https://discord.com/api/v10/channels/.../messages, request_timeout=unknown ms]
at io.ktor.client.engine.cio.EndpointKt$setupTimeout$timeoutJob$1.invokeSuspend(Endpoint.kt:307)...