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...
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...
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)?
Error Json parsing
Hello !
I have an error with my bot (check in thread)
After this, the robot may stop working....
Import dev.kord.x:emoji
Hello
Where is published the latest version of kord emoji ? in maven central the last version in 0.5.0 but in Github, the last release is 0.6.0...
Getting members on Guild type doesn't return same amount members as when getting memberCount from it
I tried using rest. Gettings members from guild returns only the bot itself but getting member count returns 3(the actual amount)
Outdated wiki
Seems like Kord Github wiki is outdated.
was replaced by and method is unknown....
int
int
integer
integer
deferPublicMessage()
deferPublicMessage()
Responses to messages
3 things I'd like to:
1. Check if the message is a response
2. Get the message this message responds to
3. (Optionally) get the same but from a message that is a response to a
MessageContextMenuCommand
...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 : ...