Skip to content

Commit f0e313c

Browse files
committed
Update changelog, and use default user icon instead of user avatar, so to not leak the user in anon commands
1 parent 735d326 commit f0e313c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@ however, insignificant breaking changes do not guarantee a major version bump, s
1515

1616
### Fixed
1717

18+
- Not having a guild icon no longer raises an exception. ([PR #3235](https://github.com/kyb3r/modmail/pull/3235))
19+
- When no icon is set, use the default user icon.
1820
- Resolved an issue where `?logs` doesn't work when the thread has no title. ([PR #3201](https://github.com/kyb3r/modmail/pull/3201))
1921

22+
### Changed
23+
24+
- Plain messages no longer forces `()` around the respondent text. ([PR #3234](https://github.com/kyb3r/modmail/pull/3234))
25+
2026
# v4.0.1
2127

2228
This is a hotfix release.

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def get_guild_icon(self, guild: typing.Optional[discord.Guild]) -> str:
9494
if guild is None:
9595
guild = self.guild
9696
if guild.icon is None:
97-
return self.user.display_avatar.url
97+
return "https://cdn.discordapp.com/embed/avatars/0.png"
9898
return guild.icon.url
9999

100100
def _resolve_snippet(self, name: str) -> typing.Optional[str]:

0 commit comments

Comments
 (0)