diff --git a/src/commands/music/Play.ts b/src/commands/music/Play.ts index 951f91cdd..ad7ab383d 100644 --- a/src/commands/music/Play.ts +++ b/src/commands/music/Play.ts @@ -56,11 +56,13 @@ export default class Play extends Command { switch (res.loadType) { case LoadType.ERROR: ctx.editMessage({ + content: "", embeds: [embed.setColor(this.client.color.red).setDescription(ctx.locale("cmd.play.errors.search_error"))], }); break; case LoadType.EMPTY: ctx.editMessage({ + content: "", embeds: [embed.setColor(this.client.color.red).setDescription(ctx.locale("cmd.play.errors.no_results"))], }); break; @@ -68,6 +70,7 @@ export default class Play extends Command { const track = player.buildTrack(res.data, ctx.author); if (player.queue.length > client.config.maxQueueSize) return await ctx.editMessage({ + content: "", embeds: [ embed .setColor(this.client.color.red) @@ -77,6 +80,7 @@ export default class Play extends Command { player.queue.push(track); await player.isPlaying(); ctx.editMessage({ + content: "", embeds: [ embed .setColor(this.client.color.main) @@ -88,6 +92,7 @@ export default class Play extends Command { case LoadType.PLAYLIST: { if (res.data.tracks.length > client.config.maxPlaylistSize) return await ctx.editMessage({ + content: "", embeds: [ embed .setColor(this.client.color.red) @@ -100,6 +105,7 @@ export default class Play extends Command { const pl = player.buildTrack(track, ctx.author); if (player.queue.length > client.config.maxQueueSize) return await ctx.editMessage({ + content: "", embeds: [ embed .setColor(this.client.color.red) @@ -112,6 +118,7 @@ export default class Play extends Command { } await player.isPlaying(); ctx.editMessage({ + content: "", embeds: [ embed .setColor(this.client.color.main) @@ -124,6 +131,7 @@ export default class Play extends Command { const track1 = player.buildTrack(res.data[0], ctx.author); if (player.queue.length > client.config.maxQueueSize) return await ctx.editMessage({ + content: "", embeds: [ embed .setColor(this.client.color.red) @@ -133,6 +141,7 @@ export default class Play extends Command { player.queue.push(track1); await player.isPlaying(); ctx.editMessage({ + content: "", embeds: [ embed .setColor(this.client.color.main)