fix: added a search embed

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-04-04 11:36:58 +02:00
parent fc922206bb
commit 9f5d34c74a
2 changed files with 1 additions and 2 deletions

View file

@ -63,7 +63,6 @@ object Bot {
//Register Command Listener //Register Command Listener
kord.on<GuildChatInputCommandInteractionCreateEvent> { kord.on<GuildChatInputCommandInteractionCreateEvent> {
//val response = interaction.deferPublicResponse() //val response = interaction.deferPublicResponse()
coroutineScope { coroutineScope {
val deferred = async { interaction.deferPublicResponse() } val deferred = async { interaction.deferPublicResponse() }
val command = interaction.command val command = interaction.command

View file

@ -74,7 +74,7 @@ class PlayCommand : SlashCommand(
} else { } else {
"ytsearch:$query" "ytsearch:$query"
} }
MessageUtil.sendEmbedForInteraction(interaction, deferred, "Searching...", "We are looking for $query")
MusicManager.addToQueue(interaction, deferred, link, search) MusicManager.addToQueue(interaction, deferred, link, search)
} }
} }