poru-example icon indicating copy to clipboard operation
poru-example copied to clipboard

'play' slash command only ever returns 'undefined'

Open ryanayoung opened this issue 1 year ago • 0 comments

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.

ryanayoung avatar Dec 30 '23 09:12 ryanayoung