ProTon⚡
ProTon⚡
DIAdiscord.js - Imagine an app
Created by ProTon⚡ on 11/5/2023 in #djs-voice
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)
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
},
_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
},
4 replies