diff --git a/moderation/logging/cog.py b/moderation/logging/cog.py index b304ede6d..7c9a11a5d 100644 --- a/moderation/logging/cog.py +++ b/moderation/logging/cog.py @@ -310,7 +310,12 @@ async def on_member_remove(self, member: Member): if (log_channel := await self.get_logging_channel(LoggingSettings.member_leave_channel)) is None: return - await log_channel.send(t.member_left_server(member)) + if join := member.joined_at: + await log_channel.send( + t.member_left_server_with_joined(member, member.id, join.strftime("%m/%d/%Y, %H:%M:%S")) + ) + else: + await log_channel.send(t.member_left_server(member, member.id)) @commands.group(aliases=["log"]) @LoggingPermission.read.check diff --git a/moderation/logging/translations/en.yml b/moderation/logging/translations/en.yml index 8c1d1af9c..6a7008ae2 100644 --- a/moderation/logging/translations/en.yml +++ b/moderation/logging/translations/en.yml @@ -24,7 +24,8 @@ message_id: Message ID created_at: Created At member_joined_server: "{} ({}) just joined the server!" -member_left_server: "**{}** just left the server!" +member_left_server_with_joined: "**{}** ({}) just left the server! Latest join was at {}" +member_left_server: "**{}** ({}) just left the server!" log_not_changed_no_permissions: > Logging channel could not be changed because I don't have `send_messages` permission there.