pozmieniałem kolejność wiadomości

This commit is contained in:
Patryk Koreń
2025-12-29 18:34:52 +01:00
parent ac5f65844d
commit b301393bc9
2 changed files with 4 additions and 2 deletions

View File

@@ -26,11 +26,12 @@ async function execute(interaction: ChatInputCommandInteraction<CacheType>) {
if (input.startsWith("http")) { if (input.startsWith("http")) {
url = input url = input
} else { } else {
url = await search(input)
await interaction.editReply(`searching for: ${input}`); await interaction.editReply(`searching for: ${input}`);
url = await search(input)
console.log(input, url) console.log(input, url)
} }
await interaction.editReply(`downloading: ${url}`);
await forceRequestSong(interaction, url) await forceRequestSong(interaction, url)
const msg = getPlayMsg(url) const msg = getPlayMsg(url)

View File

@@ -26,11 +26,12 @@ async function execute(interaction: ChatInputCommandInteraction<CacheType>) {
if (input.startsWith("http")) { if (input.startsWith("http")) {
url = input url = input
} else { } else {
url = await search(input)
await interaction.editReply(`searching for: ${input}`); await interaction.editReply(`searching for: ${input}`);
url = await search(input)
console.log(input, url) console.log(input, url)
} }
await interaction.editReply(`downloading: ${url}`);
await requestSong(interaction, url) await requestSong(interaction, url)
const msg = getPlayMsg(url) const msg = getPlayMsg(url)