Skip to content

Commit

Permalink
[Fix] check if there is playlists in the database before sending the …
Browse files Browse the repository at this point in the history
…embed!
  • Loading branch information
naseif committed Nov 15, 2021
1 parent 6970ea5 commit a2f7367
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/Music/playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ module.exports = {
embeds: [
embedMessage(
"RED",
`No Playlist found with this name!\n Available Playlists: \`${filterPlaylists.join(
", "
)}\``
`No Playlist found with this name!\n Available Playlists: \`${
filterPlaylists ? filterPlaylists.join(" - ") : "None"
}\``
),
],
});
Expand Down

0 comments on commit a2f7367

Please sign in to comment.