Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'play' slash command only ever returns 'undefined' #18

Open
ryanayoung opened this issue Dec 30, 2023 · 0 comments
Open

'play' slash command only ever returns 'undefined' #18

ryanayoung opened this issue Dec 30, 2023 · 0 comments

Comments

@ryanayoung
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant