Tic
Tic
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
I worked on it partially, it was before the add of interaction
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
Basically, create a system that listen event from discord and call registered handler if it's not a deletion
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
In the same context, LiveMessage are with preview annotations since .. 2-3 years I think, maybe we should remove the preview state? @LustigerLurch
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
So the mix between: - supressEmbed to keep the integration updated - LiveMessage to receive information when message is deleted Resolve my issue, thanks a lot
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
Ah .. maybe yes to verify if the message is deleted or not
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
so followup message is not necessary for my need
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
That works, nice
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
oh? interesting thanks I will try
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
There is a timeout system, but stop the system instantly when the embed is removed is better than wait X minutes
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
and stop the process consequently
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
of course, but it's also to avoid consuming resources (CPU, RAM) because the paginator don't work anymore
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
I don't think so 🤔 but maybe it's something to check
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
Because the buttons continue to work. So in my paginator, the user can continue to change the page, but no info can be display (because embed integration is removed by user), so I would like to cancel the process to stop lifecycle linked to the paginator, returns a error message to the user saying "Integration removed" etc.
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
and after that, if the bot tries to update the embed, the message is modified but the embed removed (never appears again)
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
He can click on the closs at the top right of an embed
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
I found something like:
val deferredResponse = interaction.deferPublicResponse()
val msg= deferredResponse.respond {
content = "This command is not implemented yet."
embed {
title = "This command is not implemented yet."
description = "This command is not implemented yet."
}
}
println("First: ${msg.getFollowupMessage(msg.message.id).message.embeds.size}") // 1
delay(5.seconds)
println("Second: ${msg.getFollowupMessage(msg.message.id).message.embeds.size}") // After suppression by user, 0
val deferredResponse = interaction.deferPublicResponse()
val msg= deferredResponse.respond {
content = "This command is not implemented yet."
embed {
title = "This command is not implemented yet."
description = "This command is not implemented yet."
}
}
println("First: ${msg.getFollowupMessage(msg.message.id).message.embeds.size}") // 1
delay(5.seconds)
println("Second: ${msg.getFollowupMessage(msg.message.id).message.embeds.size}") // After suppression by user, 0
It's the good way to verify?
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
Ok so, how can I create a followUp 😅?
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
I don't find 🤔
42 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
No description
42 replies