how can send lavalink error to a discord error message for music bot

165 Views Asked by At

hi im trying too get lavalink error and then convert error message to discord response error i get console error with no problemo with this code, .on("error", console.error)

i tried to get it like this but i get undefined message as result,:

.on("error", () => {
if (this.textChannel) this.textChannel.send(util.embed().setColor(this.guild.me.displayHexColor).setDescription(`${error}`));
})

can anyone help me :( im newbie,learning every day

code looking on vs code for info

0

There are 0 best solutions below