DISCORD MUSIC BOT bug (help)

The code:

// use

const {

Client,

Attachment

} = require(“discord.js”);

const bot = new Client();

const ytdl = require(“ytdl-core”);

const PREFIX = “.”;

var version = ‘1.0’;

var servers = {};

bot.on(‘ready’, () => {

console.log("ONLINE " + version);

});

const TOKEN = “tokenem”

bot.login(TOKEN)

// console kiírás

bot.on(‘message’, async message => {

if(message.author.bot) return undefined;

if(!message.content.startsWith(PREFIX)) return undefined;

const args = message.content.split(' ');

if(message.content.startsWith(`${PREFIX}play`)) {

    const voiceChannel = message.member.voiceChannel;

    if(!voiceChannel) return message.channel.send('Join voice channel pls!');

    const permissions = voiceChannel.permissionsFor(message.client.user);

    if(!permissions.has('CONNECT')) {

        return message.channel.send("Nem tudok csatlakozni ehhez a voice csatornához!");

    }

    if(!permissions.has('SPEAK')) {

        return message.channel.send('Nincs jogom zenét lejátszani!');

    }

    try{

        var connention = await voiceChannel.join();

    } catch (arror) {

        console.error(`HIBA itt: ${error}`);

        return message.channel.send(`Hiba lépett fel itt: ${error}`);

    }

    const dispatcher = connection.playStream(ytdl(args[1]))

    .on('end', () => {

        console.log('A zenének vége!');

        voiceChannel.leave();

    })

    .on('error', error => {

        console.error(error);

    });

    dispatcher.setVolumeLogarithmic(5 / 5);

}

});

my problem: https://ibb.co/vjyR8gP

my code in a picture: https://ibb.co/jZvK1Mz