Skip to content

Commit

Permalink
[Enhancement] Updated error message if song not found
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Oct 19, 2021
1 parent b95046e commit f2e9e73
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions commands/Music/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module.exports = {
usage: "p <YouTube URL | Song Name | Spotify URL | Soundcloud URL |>",
async run(message, args, client, prefix) {
const songString = args.join(" ");

if (!songString)
return await message.channel.send({
embeds: [
Expand Down Expand Up @@ -47,7 +46,12 @@ module.exports = {

if (!searchSong.tracks.length || !searchSong)
return message.channel.send({
embeds: [embedMessage("#9dcc37", `❌ | Song not found`)],
embeds: [
embedMessage(
"#9dcc37",
`❌ | Song not found, Maybe its age restricted or flagged as offensive by Youtube`
),
],
});

let queue = await client.player.createQueue(message.guildId, {
Expand Down

0 comments on commit f2e9e73

Please sign in to comment.