I'm trying to do a music bot for discord and I follow a tutorial for this. But, when I run show this error "SyntaxError: await is only valid in async function" This is the code:
const songInfo = await ytdl.getInfo(args[1]);
const song = {
title: songInfo.videoDetails.title,
url: songInfo.voiceDetails.video_url,
};
I can't understand what I have to change to works.