fix example

This commit is contained in:
Snowflake107 2021-06-24 14:33:27 +05:45
parent 395f928e2e
commit a3dfd671e2

View file

@ -172,7 +172,7 @@ client.on("interaction", async (interaction) => {
requestedBy: interaction.user,
searchEngine: interaction.commandName === "soundcloud" ? QueryType.SOUNDCLOUD_SEARCH : QueryType.AUTO
})
.catch(Util.noop);
.catch(() => {});
if (!searchResult || !searchResult.tracks.length) return void interaction.followUp({ content: "No results were found!" });
const queue = await player.createQueue(interaction.guild, {