From f7a3ea90b8f5eb84da9bc97b8dd895d01d7445f9 Mon Sep 17 00:00:00 2001 From: SYCKGit <69903990+SYCKGit@users.noreply.github.com> Date: Wed, 18 Aug 2021 10:12:48 +0530 Subject: [PATCH] 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 --- discord/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/message.py b/discord/message.py index 6f7bfd9a0..22d3b160e 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):