You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Description
For some reason, it always says "client not defined" and I always get this error.
Reproduction Steps
Steps to reproduce the behavior:
start the bot
and error..
Expected Result
Bot should start without error!
Attachments
My Command:
const{ MessageEmbed }=require("discord.js");const{ Player }=require("discord-music-player");constplayer=newPlayer(client,{leaveOnEmpty: false,});;module.exports={name: "play",description: "Zene Lejátszása",category: "song",slash: true,options: [{name: "zene",description: "Zene linkje amit szeretnél leállítani!",type: "STRING",required: true,},],global: true,error: async()=>{},run: async(data)=>{constzene=data.interaction.options.getString('zene');constvoiceChannel=data.interaction.member.voice.channel;letqueue=player.createQueue(data.interaction.guild.id);letguildQueue=player.getQueue(data.interaction.guild.id);if(!zene){returndata.interaction.reply("> Kérlek adj meg egy zenét!");}if(!voiceChannel){returndata.interaction.reply("> Legyél bent egy hangcsatornában!");}awaitqueue.join(voiceChannel);letsong=awaitqueue.play(zene).catch(err=>{console.log(err);if(!guildQueue)queue.stop();});constembed=newMessageEmbed().setTitle(`Zene Lejátszása`).setDescription(`> Beléptem a hangcsatornába és elkezdtem lejátszani a zenét!`).setTimestamp().addField("Zene:",queue.author,true).addField("Hossz:",queue.duration,true).addField("Link:",queue.url,true).addField("Hozzáadta:",queue.requestedBy,true).setThumbnail(queue.thumbnail).setColor("#7289DA");data.interaction.editReply({embeds: [embed],});},};
Versioning:
OS: Ubuntu 22.04
Node Version v16.20.2
Module Version v8
The text was updated successfully, but these errors were encountered:
Bug Description
For some reason, it always says "client not defined" and I always get this error.
Reproduction Steps
Steps to reproduce the behavior:
and error..
Expected Result
Bot should start without error!
Attachments
My Command:
Versioning:
The text was updated successfully, but these errors were encountered: