fix: added a search embed
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
fc922206bb
commit
9f5d34c74a
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue