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

on_member_ban update

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -196,13 +196,13 @@ async def on_member_ban(guild, banned_user):
196
  # test 1106995261487710411
197
  content = "<@&1108342563628404747>" # @alerts role
198
  embed = Embed(color=Color.red())
199
- embed.set_author(name=f"{banned_user} ID: {banned_user.id}", icon_url=banned_user.avatar.url if banned_user.avatar else bot.user.avatar.url)
200
  embed.title = "User Banned"
201
- embed.add_field(name="User", value=banned_user.mention, inline=True)
202
- embed.add_field(name="Nickname", value=banned_user.nick, inline=True)
203
- embed.add_field(name="Account Created At", value=banned_user.created_at, inline=True)
204
- embed.add_field(name="Moderator", value=moderator.mention, inline=True)
205
- embed.add_field(name="Nickname", value=moderator.nick, inline=True)
206
  embed.add_field(name="Reason", value=ban_reason, inline=False)
207
  embed.set_footer(text=f"{convert_to_timezone(datetime.utcnow(), zurich_tz)}")
208
 
 
196
  # test 1106995261487710411
197
  content = "<@&1108342563628404747>" # @alerts role
198
  embed = Embed(color=Color.red())
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)
206
  embed.add_field(name="Reason", value=ban_reason, inline=False)
207
  embed.set_footer(text=f"{convert_to_timezone(datetime.utcnow(), zurich_tz)}")
208