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
65 Replies
I have tried to search for interfaces to cast to, but no result...
Unknown Userā¢17mo ago
Message Not Public
Sign In & Join Server To View
https://dokka.kord.dev/core/dev.kord.core.entity/-message/referenced-message.html That might be what you are looking for
Unknown Userā¢17mo ago
Message Not Public
Sign In & Join Server To View
ig
not sure either tbh
Yeah š
Thanks!
This is exactly what I wanted for the first two, what about the
MessageContextMenuCommand
? Is it even possible?That should give you the same Message Object
Tried it, but the
referencedMessage
property was null šUnknown Userā¢17mo ago
Message Not Public
Sign In & Join Server To View
Haven't worked with rest yet š, but will try it!
Unknown Userā¢17mo ago
Message Not Public
Sign In & Join Server To View
Doesn't work with rest either, it's not taken as a reply imo.
Also, good to mention, the response was ephemeral
Unknown Userā¢16mo ago
Message Not Public
Sign In & Join Server To View
ofc
Response for message context-menu command:
report-confirm
button
Tell me if something in the code could be improved, I'm new to Kotlin (coming from Java š¤¢)Unknown Userā¢16mo ago
Message Not Public
Sign In & Join Server To View