Check if embed is removed by user
Hello
How can I know if an embed has been removed by the user?
How can I know if an embed has been removed by the user?
deferredResponse.getFollowupMessage(XXX) but .. how can I get the message ID?
suppressEmbeds = false to the message (modify) builderMessageFlag.SuppressEmbeds in the flags of the message. you should also be able to use that flag to determine when the embeds are removed by a user.supressEmbed to keep the integration updatedval 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