You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The const resolve = await client.poru.resolve(interaction.options.getString('query')); line is malformed and only ever searches for 'undefined'.
Changing the line to const resolve = await client.poru.resolve({query: interaction.options.getString('query'), source: 'ytsearch', requester: interaction.member});
fixes the problem.
The text was updated successfully, but these errors were encountered:
When using the
/play <url or search>
command the bot only ever loads the top youtube search for the term 'undefined'.The
const resolve = await client.poru.resolve(interaction.options.getString('query'));
line is malformed and only ever searches for 'undefined'.Changing the line to
const resolve = await client.poru.resolve({query: interaction.options.getString('query'), source: 'ytsearch', requester: interaction.member});
fixes the problem.
The text was updated successfully, but these errors were encountered: