Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
on_member_ban update
Browse files
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"{
|
200 |
embed.title = "User Banned"
|
201 |
-
embed.add_field(name="User", value=
|
202 |
-
embed.add_field(name="Nickname", value=
|
203 |
-
embed.add_field(name="Account Created At", value=
|
204 |
-
embed.add_field(name="Moderator", value=
|
205 |
-
embed.add_field(name="Nickname", value=
|
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 |
|