diff options
| author | 2021-06-10 10:21:40 -0400 | |
|---|---|---|
| committer | 2021-06-10 10:21:40 -0400 | |
| commit | 6d801a6500692302351af0e1af9d1519444bfc19 (patch) | |
| tree | e09897a9db42b41167768f9c1317b3e49eb5fd1b | |
| parent | Change discord.py colour to constants colour (diff) | |
Edit ignore close messages if statement
| -rw-r--r-- | bot/exts/help_channels/_cog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/help_channels/_cog.py b/bot/exts/help_channels/_cog.py index 99e530b66..dff5198a9 100644 --- a/bot/exts/help_channels/_cog.py +++ b/bot/exts/help_channels/_cog.py @@ -564,7 +564,7 @@ class HelpChannels(commands.Cog): if not await _caches.help_dm.get(message.author.id): return # Ignore message if user is opted out of help dms - if message.content == f"{self.bot.command_prefix}close": + if (await self.bot.get_context(message)).command == self.close_command: return # Ignore messages that are closing the channel session_participants = self._deserialise_session_participants( |