Skip to content

Commit 144b516

Browse files
committed
Increment version for improved format
1 parent 601fb88 commit 144b516

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
# v2.1.1
8+
9+
### Changed
10+
- Added closer information in the logs command.
11+
712
# v2.2.0
813
### Added
914
- Added a notify command `notify [role]`

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
SOFTWARE.
2323
"""
2424

25-
__version__ = '2.2.0'
25+
__version__ = '2.2.1'
2626

2727
import asyncio
2828
import textwrap

cogs/modmail.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,14 +313,15 @@ async def logs(self, ctx, *, member: Union[discord.Member, discord.User, obj]=No
313313
user = member or thread.recipient
314314

315315
icon_url = getattr(user, 'avatar_url', 'https://cdn.discordapp.com/embed/avatars/0.png')
316+
username = str(user) if hasattr(user, 'name') else str(user.id)
316317

317318
logs = await self.bot.modmail_api.get_user_logs(user.id)
318319

319320
if not any(not e['open'] for e in logs):
320321
return await ctx.send(embed=discord.Embed(color=discord.Color.red(), description='This user does not have any previous logs'))
321322

322323
em = discord.Embed(color=discord.Color.green())
323-
em.set_author(name='Previous Logs', icon_url=icon_url)
324+
em.set_author(name=f'{username} - Previous Logs', icon_url=icon_url)
324325

325326
embeds = [em]
326327

0 commit comments

Comments
 (0)