Metadata for createAudioResource is null

I'm trying to fetch metadata about the Audio Resource (specifically the time length of the audio) however, the metadata property is null. I'd assume this is because I haven't defined anything for the metadata. I'm just not sure of how to actually go about getting the resource duration.
4 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Max
MaxOP2y ago
discord.js v13.12.0, @discordjs/voice v0.13.0, @discordjs/opus v0.8.0
const path = "song.mp3";
const resource = Voice.createAudioResource(path, {
inlineVolume: true
});
const path = "song.mp3";
const resource = Voice.createAudioResource(path, {
inlineVolume: true
});
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Max
MaxOP2y ago
Thank you!!
Want results from more Discord servers?
Add your server