Help with discord js voice

arsb!ceval let mod = require("@discordjs/voice")
let player = mod.createAudioPlayer();
console.log(player)
mod.joinVoiceChannel({channelId: "1079420517523669133", guildId: message.guild.id, adapterCreator: message.guild.voiceAdapterCreator}).subscribe(player)
let gr = mod.createAudioResource("./Assets/tmp/song.mp3")
player.play(gr)
console.log(player)


uhh, here the audio thing is not playing, so heres the output from the debug stuff,

In first console log, state is idle,
In 2nd, its buffering, and this
_state: {
    status: 'buffering',
    resource: AudioResource {
      playStream: [OggDemuxer],        
      edges: [Array],
      metadata: null,
      volume: undefined,
      encoder: undefined,
      audioPlayer: [Circular *1],
      playbackDuration: 0,
      started: false,
      silencePaddingFrames: 5,
      silenceRemaining: -1
    },
Was this page helpful?