skick1234 / DisTube

A powerful Discord.js module for simplifying music commands and effortless playback of various sources with integrated audio filters.
https://distube.js.org
MIT License
423 stars 94 forks source link

Add a Search song option #58

Closed kakarot-dev closed 3 years ago

kakarot-dev commented 3 years ago

Is it possible to make a search command instead of making searchSongs: true If yes pls share the code

kakarot-dev commented 3 years ago

Also btw this code support’s only YouTube

skick1234 commented 3 years ago

Use <DisTube>.search() and .play() instead.

kakarot-dev commented 3 years ago

But it still doesn't work

skick1234 commented 3 years ago

But it still doesn't work

Because .search() just return an array of SearchResult. You have to make message collector yourself. Because searchSongs: false will disable the built-in collector

kakarot-dev commented 3 years ago

Oh so if I make it true will it work oh wait no need of search then

kakarot-dev commented 3 years ago

Is it possible to make it so that we can change the number of results when searchSongs: true

kakarot-dev commented 3 years ago

But it still doesn't work

Because .search() just return an array of SearchResult. You have to make message collector yourself. Because searchSongs: false will disable the built-in collector

also how to play the option they have selected