Giter Club home page Giter Club logo

plugins's Issues

Spotify song not playing and not supported by queue

When trying to play the bot doesn't make any sounds

    if (this.client.manager.spotify.isSpotifyUrl(query)) {
      const item = await this.client.manager.spotify.load(query);
      if (item instanceof SpotifyTrack) {
        if (!player.connected)
          message.guild!.player!.connect(message.member!.voice.channel.id, {
            selfDeaf: true
          });

        player.setVolume(100);

        return player.play(item);
      }
    }

When using in queue I get this error

?play https://open.spotify.com/track/6wQlQrTY5mVS8EGaFZVwVF?si=24fdb4c246a145fb | Cannot read property 'buffer' of undefined
TypeError: Cannot read property 'buffer' of undefined
    at new DataInput (/home/xenfo/Desktop/Projects/discord-bots/muz/node_modules/.pnpm/@[email protected]/node_modules/@lavalink/encoding/dist/src/DataInput.js:11:40)
    at Object.decode (/home/xenfo/Desktop/Projects/discord-bots/muz/node_modules/.pnpm/@[email protected]/node_modules/@lavalink/encoding/dist/src/index.js:110:19)
    at new Song (/home/xenfo/Desktop/Projects/discord-bots/muz/node_modules/.pnpm/@[email protected]/node_modules/@lavaclient/queue/dist/Song.js:9:36)
    at Queue.add (/home/xenfo/Desktop/Projects/discord-bots/muz/node_modules/.pnpm/@[email protected]/node_modules/@lavaclient/queue/dist/Queue.js:66:25)
    at PlayCommand.exec (/home/xenfo/Desktop/Projects/discord-bots/muz/dist/src/bot/commands/music/Play.js:53:37)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async CommandHandler.runCommand (/home/xenfo/Desktop/Projects/discord-bots/muz/node_modules/.pnpm/[email protected]/node_modules/discord-akairo/src/struct/commands/CommandHandler.js:768:25)
    at async CommandHandler.handleDirectCommand (/home/xenfo/Desktop/Projects/discord-bots/muz/node_modules/.pnpm/[email protected]/node_modules/discord-akairo/src/struct/commands/CommandHandler.js:439:20)
    at async CommandHandler.handle (/home/xenfo/Desktop/Projects/discord-bots/muz/node_modules/.pnpm/[email protected]/node_modules/discord-akairo/src/struct/commands/CommandHandler.js:379:23)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.