Skip to content

Commit 92f9d6c

Browse files
authored
Fix 3 typos in guild logs (#712)
1 parent 196e46e commit 92f9d6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

techsupport_bot/botlogging/events.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ async def on_guild_role_create(self, role: discord.Role):
536536
f"New role with name {role.name} added to guild with ID {role.guild.id}"
537537
),
538538
level=LogLevel.INFO,
539-
context=LogContext(guild=role.before),
539+
context=LogContext(guild=role.guild),
540540
channel=log_channel,
541541
embed=embed,
542542
)
@@ -554,7 +554,7 @@ async def on_guild_role_delete(self, role: discord.Role):
554554
f"Role with name {role.name} deleted from guild with ID {role.guild.id}"
555555
),
556556
level=LogLevel.INFO,
557-
context=LogContext(guild=role.before),
557+
context=LogContext(guild=role.guild),
558558
channel=log_channel,
559559
embed=embed,
560560
)
@@ -579,7 +579,7 @@ async def on_guild_role_update(self, before: discord.Role, after: discord.Role):
579579
f" {before.guild.id}"
580580
),
581581
level=LogLevel.INFO,
582-
context=LogContext(guild=before.before),
582+
context=LogContext(guild=before.guild),
583583
channel=log_channel,
584584
embed=embed,
585585
)

0 commit comments

Comments
 (0)