poru-example
poru-example copied to clipboard
'play' slash command only ever returns 'undefined'
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.