K
Kord2mo ago
BEQI

Ephemeral message

Is there any way to create ephemeral message in Kord?
if (!isAdmin) {message.channel.createMessage(content = "You don't have enough permissions!")}
if (!isAdmin) {message.channel.createMessage(content = "You don't have enough permissions!")}
12 Replies
BEQI
BEQIOP2mo ago
Example of ephemeral message
No description
viztea
viztea2mo ago
no they're only for interaction responses
BEQI
BEQIOP2mo ago
So...? How it use with interaction responses?
viztea
viztea2mo ago
MessageFlag.Ephemeral
BEQI
BEQIOP2mo ago
I'll try it And how can I make interaction messages? I'm using AI
if (!isAdmin) {
message.kord.rest.interaction.?(
interactionId = message.id,
interactionToken = message.interaction ?: return@on,
content = "You don't have enough permissions!",
flags = setOf(MessageFlag.Ephemeral)
)
return@on}
if (!isAdmin) {
message.kord.rest.interaction.?(
interactionId = message.id,
interactionToken = message.interaction ?: return@on,
content = "You don't have enough permissions!",
flags = setOf(MessageFlag.Ephemeral)
)
return@on}
viztea
viztea2mo ago
in that case, i'm not gonna help you i don't have the patience
BEQI
BEQIOP2mo ago
Understandable
gdude
gdude2mo ago
You need to take the time to understand how the Discord API actually works Interactions refer to application commands, modals and message components You can't just create one Do not generate your code, especially not for a library that's part of a community this small It's my personal policy (along with many people here) not to help people who generate the majority of their code - programming is not a field you can fall upwards into
BEQI
BEQIOP2mo ago
Ok. Bye then
gdude
gdude2mo ago
They left. Good /lh
matytyma
matytyma2mo ago
lmao
Tic
Tic2mo ago
I laughed

Did you find this page helpful?