mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 10:49:20 +00:00
Music player crash fix
This commit is contained in:
@@ -48,7 +48,7 @@ const EMBEDS = {
|
||||
},
|
||||
MUSIC_ERROR: (data: Message | Interaction, err: Error) => {
|
||||
return makeErrorEmbed({
|
||||
title: `Error`,
|
||||
title: `Error while playing music, skipping this track`,
|
||||
description: `${err.message}`,
|
||||
user: (data instanceof Interaction) ? data.user : data.author
|
||||
});
|
||||
@@ -152,6 +152,8 @@ export async function joinVoiceChannelProcedure (data: Interaction | Message, in
|
||||
// Register Event Listeners
|
||||
instance.events.on('playing', async (event: PlayerPlayingEvent) => {
|
||||
|
||||
if(!event.instance.queue || !event.instance.queue.track || event.instance.queue.track.length === 0) return;
|
||||
|
||||
const row = new MessageActionRow()
|
||||
.addComponents(
|
||||
new MessageButton()
|
||||
|
||||
Reference in New Issue
Block a user