Skip to content

Commit

Permalink
[Fix] Fix guildMemberAdd event not working if the user has no avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Oct 19, 2021
1 parent 6d3379b commit 27e4d01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion events/guildMemberAdd.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ module.exports = {
color: "#9dcc37",
title: `New Member joined!`,
thumbnail: {
url: `${guild.user.avatarURL()}`,
url: `${
guild.user.avatarURL() ||
guild.guild.iconURL() ||
guild.guild.client.user.avatarURL()
}`,
},
fields: [
{
Expand Down

0 comments on commit 27e4d01

Please sign in to comment.