lunarflu HF staff commited on
Commit
ed4bce0
·
1 Parent(s): ba1c870

ban nickname check update

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -199,7 +199,8 @@ async def on_member_ban(guild, banned_user):
199
  embed.set_author(name=f"{entry2.target} ID: {entry2.target.id}", icon_url=entry2.target.avatar.url if entry2.target.avatar else bot.user.avatar.url)
200
  embed.title = "User Banned"
201
  embed.add_field(name="User", value=entry2.target.mention, inline=True)
202
- embed.add_field(name="Nickname", value=entry2.target.nick, inline=True)
 
203
  embed.add_field(name="Account Created At", value=entry2.target.created_at, inline=True)
204
  embed.add_field(name="Moderator", value=entry2.user.mention, inline=True)
205
  embed.add_field(name="Nickname", value=entry2.user.nick, inline=True)
 
199
  embed.set_author(name=f"{entry2.target} ID: {entry2.target.id}", icon_url=entry2.target.avatar.url if entry2.target.avatar else bot.user.avatar.url)
200
  embed.title = "User Banned"
201
  embed.add_field(name="User", value=entry2.target.mention, inline=True)
202
+ nickname = entry2.target.nick if entry2.target.nick else "None"
203
+ embed.add_field(name="Nickname", value=nicknmae, inline=True)
204
  embed.add_field(name="Account Created At", value=entry2.target.created_at, inline=True)
205
  embed.add_field(name="Moderator", value=entry2.user.mention, inline=True)
206
  embed.add_field(name="Nickname", value=entry2.user.nick, inline=True)