Skip to content

Commit

Permalink
Fix the erroneous parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
hmes98318 committed Apr 8, 2023
1 parent d485def commit 8d589dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/commands/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ module.exports = {
else queryType = client.config.textQuery;

const results = await client.player.search(str, {
requestedBy: message.member,
requestedBy: interaction.member,
searchEngine: queryType
})
.catch((error) => {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ module.exports = {
else queryType = client.config.textQuery;

const results = await client.player.search(str, {
requestedBy: message.member,
requestedBy: interaction.member,
searchEngine: queryType
})
.catch((error) => {
console.log(error);
return message.reply({ content: `❌ | The service is experiencing some problems, please try again.`, allowedMentions: { repliedUser: false } });
return interaction.reply({ content: `❌ | The service is experiencing some problems, please try again.`, allowedMentions: { repliedUser: false } });
});

if (!results || !results.hasTracks())
Expand Down

0 comments on commit 8d589dc

Please sign in to comment.