diff options
| author | 2021-10-19 09:31:32 +0100 | |
|---|---|---|
| committer | 2021-10-19 09:31:32 +0100 | |
| commit | 5b7d8c41c88d3d0333f16dabd45efa770da87c82 (patch) | |
| tree | 2fbee067dd2d7fe3acda8e324c77fd7f47b4cfe9 | |
| parent | Invert `isinstance` check as per review (diff) | |
Update log message for when author isn't `discord.Member`
| -rw-r--r-- | bot/exts/help_channels/_cog.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/help_channels/_cog.py b/bot/exts/help_channels/_cog.py index b3da1e315..770a6360a 100644 --- a/bot/exts/help_channels/_cog.py +++ b/bot/exts/help_channels/_cog.py @@ -129,8 +129,7 @@ class HelpChannels(commands.Cog): # Handle odd edge case of `message.author` not being a `discord.Member` (see bot#1839) if not isinstance(message.author, discord.Member): log.warning( - f"`message.author` ({message.author} / {message.author.id}) isn't a `discord.Member` so not handling " - "role change or sending DM." + f"{message.author} ({message.author.id}) isn't a member. Not giving cooldown role or sending DM." ) else: await self._handle_role_change(message.author, message.author.add_roles) |