How to use the ytdl-core-discord.getBasicInfo function in ytdl-core-discord

To help you get started, we’ve selected a few ytdl-core-discord examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Crow08 / discord-uberbot / src / YouTubeService.js View on Github external
return new Promise((resolve, reject) => {
      ytdlDiscord.getBasicInfo(searchString, {}, (err, info) => {
        if (err) {
          return reject(err);
        const song = new Song();
        song.title = info.title;
        song.url = info.video_url;
        song.artist =;
        song.src = Song.srcType.YT;
        return resolve([song]);


A ytdl-core wrapper focused on efficiency for use in Discord music bots

Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis

Popular ytdl-core-discord functions