K
Kord5d 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!")}
11 Replies
BEQI
BEQIOP5d ago
Example of ephemeral message
No description
viztea
viztea5d ago
no they're only for interaction responses
BEQI
BEQIOP5d ago
So...? How it use with interaction responses?
viztea
viztea5d ago
MessageFlag.Ephemeral
BEQI
BEQIOP5d 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
viztea5d ago
in that case, i'm not gonna help you i don't have the patience
BEQI
BEQIOP5d ago
Understandable
gdude
gdude5d 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
BEQIOP5d ago
Ok. Bye then
gdude
gdude5d ago
They left. Good /lh
matytyma
matytyma5d ago
lmao
Want results from more Discord servers?
Add your server