#Not receiving any audio from local .mp3

1 messages · Page 1 of 1 (latest)

scenic citrus

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.