fix: fixed typo in button event

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-05-23 22:57:32 +02:00
parent 25d3eab336
commit 160deb1c74

View file

@ -99,7 +99,7 @@ object Bot {
bot.kordRef.on<ButtonInteractionCreateEvent> { bot.kordRef.on<ButtonInteractionCreateEvent> {
val inter = this.interaction val inter = this.interaction
val u = inter.user val u = inter.user
Logger.out("Button interaction: ${inter.componentId} fron ${u.asUser().username}#${u.asUser().discriminator}") Logger.out("Button interaction: ${inter.componentId} from ${u.asUser().username}#${u.asUser().discriminator}")
if (inter.componentId.startsWith("public.edit.")) { if (inter.componentId.startsWith("public.edit.")) {
val response = inter.deferPublicMessageUpdate() val response = inter.deferPublicMessageUpdate()
val g = this.interaction.getOriginalInteractionResponse().getGuild() val g = this.interaction.getOriginalInteractionResponse().getGuild()