hey so i have this local .mp3 file, and i have this code right here
if (!interaction.member.voice?.channel) {
return interaction.reply({ content: "You need to be in a Voice Channel to perform this command.", ephemeral: true })
}
const connection = joinVoiceChannel({
channelId: interaction.member.voice.channel.id,
guildId: interaction.guild.id,
adapterCreator: interaction.guild.voiceAdapterCreator,
selfDeaf: false
})
const player = createAudioPlayer()
const resource = createAudioResource('./lofi/lofi_one.mp3')
connection.subscribe(player)
player.play(resource)
return interaction.reply({ content: "Now playing: lofi_one.mp3" })
for some reason it isnt working, it will join the vc but wont play anything. and yes the file exists/does have audio.