Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fixing empty avatar issue avatar_url = member.avatar.url if member.avatar else bot.user.avatar.url embed.set_author(name=f"{member} ID: {member.id}", icon_url=avatar_url)
Browse files
app.py
CHANGED
@@ -215,7 +215,8 @@ async def on_member_unban(guild, unbanned_user):
|
|
215 |
async def on_member_join(member):
|
216 |
try:
|
217 |
embed = Embed(color=Color.blue())
|
218 |
-
|
|
|
219 |
embed.title = "User Joined"
|
220 |
embed.add_field(name="Mention", value=member.mention, inline=True)
|
221 |
embed.add_field(name="Nickname", value=member.nick, inline=True)
|
|
|
215 |
async def on_member_join(member):
|
216 |
try:
|
217 |
embed = Embed(color=Color.blue())
|
218 |
+
avatar_url = member.avatar.url if member.avatar else bot.user.avatar.url
|
219 |
+
embed.set_author(name=f"{member} ID: {member.id}", icon_url=avatar_url)
|
220 |
embed.title = "User Joined"
|
221 |
embed.add_field(name="Mention", value=member.mention, inline=True)
|
222 |
embed.add_field(name="Nickname", value=member.nick, inline=True)
|