@iamtraction/play-dl
    Preparing search index...

    Function search

    Searches through a particular source and gives respective info.

    Example

    const searched = await play.search('Rick Roll', { source : { youtube : "video" } }) // YouTube Video Search

    const searched = await play.search('Rick Roll', { limit : 1 }) // YouTube Video Search but returns only 1 video.

    const searched = await play.search('Rick Roll', { source : { spotify : "track" } }) // Spotify Track Search

    const searched = await play.search('Rick Roll', { source : { soundcloud : "tracks" } }) // SoundCloud Track Search

    const searched = await play.search('Rick Roll', { source : { deezer : "track" } }) // Deezer Track Search

    string to search.

    number limit : No of searches you want to have.

    • string language : Sets language of searched content [ YouTube search only. ], e.g. "en-US"
    • boolean unblurNSFWThumbnails : Unblurs NSFW thumbnails. Defaults to false [ YouTube search only. ] !!! Before enabling this for public servers, please consider using Discord features like NSFW channels as not everyone in your server wants to see NSFW images. !!! Unblurred images will likely have different dimensions than specified in the YouTubeThumbnail objects.
    • boolean fuzzy : Whether the search should be fuzzy or only return exact matches. Defaults to true. [ for Deezer Only ]
    • Object source : Contains type of source and type of result you want to have
         - youtube : 'video' | 'playlist' | 'channel';
    - spotify : 'album' | 'playlist' | 'track';
    - soundcloud : 'tracks' | 'playlists' | 'albums';
    - deezer : 'track' | 'playlist' | 'album';

    Array of YouTube or Spotify or SoundCloud or Deezer type