update for interaction.

This commit is contained in:
Yan 2021-08-16 18:18:10 +02:00 committed by GitHub
parent 8e83a2ded5
commit 5e84bd1723
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,7 +121,7 @@ client.on("interactionCreate", async (interaction) => {
await interaction.deferReply(); await interaction.deferReply();
const track = await player.search(query, { const track = await player.search(query, {
requestedBy: message.author requestedBy: interaction.user
}).then(x => x.tracks[0]); }).then(x => x.tracks[0]);
if (!track) return await interaction.followUp({ content: `❌ | Track **${query}** not found!` }); if (!track) return await interaction.followUp({ content: `❌ | Track **${query}** not found!` });