fix: rozpierdalał sie przy dodawaniu do kolejki kiedy coś grało
This commit is contained in:
@@ -32,10 +32,10 @@ async function execute(interaction: ChatInputCommandInteraction<CacheType>) {
|
||||
}
|
||||
|
||||
await interaction.editReply(msg_downloading(url));
|
||||
await forceRequestSong(interaction, url)
|
||||
|
||||
const msg = getPlayMsg(url)
|
||||
await interaction.editReply(msg_play());
|
||||
forceRequestSong(url, { user: interaction.user.username }).then(() => {
|
||||
// const msg = getPlayMsg(url)
|
||||
interaction.editReply(msg_play());
|
||||
})
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
await interaction.editReply('Coś poszło nie tak :/');
|
||||
|
||||
@@ -36,10 +36,9 @@ async function execute(interaction: ChatInputCommandInteraction<CacheType>) {
|
||||
}
|
||||
|
||||
await interaction.editReply(msg_downloading(url));
|
||||
await requestSong(interaction, url)
|
||||
|
||||
const msg = getPlayMsg(url)
|
||||
await interaction.editReply(msg_play());
|
||||
requestSong(url, { user: interaction.user.username }).then(() => {
|
||||
interaction.editReply(msg_play());
|
||||
})
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
await interaction.editReply('Coś poszło nie tak :/');
|
||||
|
||||
Reference in New Issue
Block a user