So if i play a song, after about a minute the bot simply crashes and says it "aborted"
music = {
"resource": createAudioResource(ytdl(parameters[0], {filter: "audioonly"}), {inputType: StreamType.Arbitrary, inlineVolume: true}),
"connection": joinVoiceChannel({
channelId: message.member.voice.channelId,
guildId: message.channel.guild.id,
adapterCreator: message.channel.guild.voiceAdapterCreator
})
}
const player = createAudioPlayer();
player.play(music["resource"]);
music["connection"].subscribe(player);
Fixed it using play-dl instead of ytdl