diff options
| author | SYCKGit <[email protected]> | 2021-08-18 10:12:48 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-18 00:42:48 -0400 |
| commit | f7a3ea90b8f5eb84da9bc97b8dd895d01d7445f9 (patch) | |
| tree | 337bc847a18da1e18b522cb9fdf86453747891d3 | |
| parent | [commands] Return removed cog in Bot.remove_cog (diff) | |
| download | discord.py-f7a3ea90b8f5eb84da9bc97b8dd895d01d7445f9.tar.xz discord.py-f7a3ea90b8f5eb84da9bc97b8dd895d01d7445f9.zip | |
Add other message types exclusions to Message.is_system
Message.is_system was checking if self.type is MessageType.default
but now there are other MessageTypes that are not system messages
| -rw-r--r-- | discord/message.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/message.py b/discord/message.py index 6f7bfd9a..22d3b160 100644 --- a/discord/message.py +++ b/discord/message.py @@ -979,7 +979,7 @@ class Message(Hashable): .. versionadded:: 1.3 """ - return self.type is not MessageType.default + return self.type not in (MessageType.default, MessageType.reply, MessageType.application_command, MessageType.thread_starter_message) @utils.cached_slot_property('_cs_system_content') def system_content(self): |