Skip to content

Commit

Permalink
[Fix] Fixed bot not sending embed if the user that requested the song…
Browse files Browse the repository at this point in the history
… has no avatar.
  • Loading branch information
naseif committed Oct 19, 2021
1 parent 611f3cc commit 2ad700e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commands/Music/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ module.exports = {
title: `${queue.playing ? "✅ Added to Queue" : "🎵 Playing"}`,
author: {
name: `${message.member.user.username}`,
icon_url: `${message.member.user.avatarURL()}`,
icon_url: `${
message.member.user.avatarURL() || message.client.user.avatarURL()
}`,
},
description: `Song: **[${searchSong.tracks[0].title}](${searchSong.tracks[0].url})**`,
thumbnail: {
Expand Down

0 comments on commit 2ad700e

Please sign in to comment.