From 9f5d34c74aff38d16b7f9d29a49ef3fddc9de86a Mon Sep 17 00:00:00 2001 From: limited_dev Date: Tue, 4 Apr 2023 11:36:58 +0200 Subject: [PATCH] fix: added a search embed Signed-off-by: limited_dev --- src/main/kotlin/de/limited_dev/botendo/Bot.kt | 1 - .../de/limited_dev/botendo/commands/slash/music/PlayCommand.kt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/de/limited_dev/botendo/Bot.kt b/src/main/kotlin/de/limited_dev/botendo/Bot.kt index f163e2f..9d4b173 100644 --- a/src/main/kotlin/de/limited_dev/botendo/Bot.kt +++ b/src/main/kotlin/de/limited_dev/botendo/Bot.kt @@ -63,7 +63,6 @@ object Bot { //Register Command Listener kord.on { //val response = interaction.deferPublicResponse() - coroutineScope { val deferred = async { interaction.deferPublicResponse() } val command = interaction.command diff --git a/src/main/kotlin/de/limited_dev/botendo/commands/slash/music/PlayCommand.kt b/src/main/kotlin/de/limited_dev/botendo/commands/slash/music/PlayCommand.kt index 64ca37b..c579bf8 100644 --- a/src/main/kotlin/de/limited_dev/botendo/commands/slash/music/PlayCommand.kt +++ b/src/main/kotlin/de/limited_dev/botendo/commands/slash/music/PlayCommand.kt @@ -74,7 +74,7 @@ class PlayCommand : SlashCommand( } else { "ytsearch:$query" } - + MessageUtil.sendEmbedForInteraction(interaction, deferred, "Searching...", "We are looking for $query") MusicManager.addToQueue(interaction, deferred, link, search) } }