audio aint working

const connection = joinVoiceChannel(
{
channelId: '1055401035599990795',
guildId: '1055401034354266143',
adapterCreator: message.channel.guild.voiceAdapterCreator,
});

const player = createAudioPlayer()
const resource = createAudioResource("e.mp3");
player.play(resource)
connection.subscribe(player)
const connection = joinVoiceChannel(
{
channelId: '1055401035599990795',
guildId: '1055401034354266143',
adapterCreator: message.channel.guild.voiceAdapterCreator,
});

const player = createAudioPlayer()
const resource = createAudioResource("e.mp3");
player.play(resource)
connection.subscribe(player)
3 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
beanieemann
beanieemannOP2y ago
no errors and just wait a min discord 14.7.1 node 16.18.1 audio is not playing connection works fine might have figured it out how did i miss this mistake god nope now it is subscribing to that connection but still the audio is not playing oh wait why did i do that i will fix that in a minute
const connection = joinVoiceChannel(
{
channelId: message.channel.guild.channelId,
guildId: message.channel.guild.guildId,
adapterCreator: message.channel.guild.voiceAdapterCreator,
});


const player = createAudioPlayer()
const resource = createAudioResource("e.mp3");
player.play(resource)
const subscription = connection.subscribe(player)
console.log(subscription);
const connection = joinVoiceChannel(
{
channelId: message.channel.guild.channelId,
guildId: message.channel.guild.guildId,
adapterCreator: message.channel.guild.voiceAdapterCreator,
});


const player = createAudioPlayer()
const resource = createAudioResource("e.mp3");
player.play(resource)
const subscription = connection.subscribe(player)
console.log(subscription);
here the new shit it still isnt working ill try to unpause them
const connection = joinVoiceChannel(
{
channelId: message.channel.id,
guildId: message.channel.guild.id,
adapterCreator: message.channel.guild.voiceAdapterCreator,
});


const player = createAudioPlayer()
const resource = createAudioResource("e.mp3");
const subscription = connection.subscribe(player)
player.play(resource)
const connection = joinVoiceChannel(
{
channelId: message.channel.id,
guildId: message.channel.guild.id,
adapterCreator: message.channel.guild.voiceAdapterCreator,
});


const player = createAudioPlayer()
const resource = createAudioResource("e.mp3");
const subscription = connection.subscribe(player)
player.play(resource)
but still isnt working the problems with the resource playbackDuration is 0 volume and encoder are underfined this file and e.mp3 are in the same folder i am going to kill someone if this is about intents
const connection = joinVoiceChannel(
{
channelId: message.channel.id,
guildId: message.channel.guild.id,
adapterCreator: message.channel.guild.voiceAdapterCreator,
});

const resource = createAudioResource(path.join(__dirname,'video.mp3'))
const player = createAudioPlayer()
//const resource = createAudioResource('/home/runner/Nodejs/video.mp3');
const subscription = connection.subscribe(player)
player.play(resource)
console.log(resource);
const connection = joinVoiceChannel(
{
channelId: message.channel.id,
guildId: message.channel.guild.id,
adapterCreator: message.channel.guild.voiceAdapterCreator,
});

const resource = createAudioResource(path.join(__dirname,'video.mp3'))
const player = createAudioPlayer()
//const resource = createAudioResource('/home/runner/Nodejs/video.mp3');
const subscription = connection.subscribe(player)
player.play(resource)
console.log(resource);
nope it still isnt working
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server