diff --git a/discord/message.py b/discord/message.py index 5643eb2fa..359fc051a 100644 --- a/discord/message.py +++ b/discord/message.py @@ -1422,7 +1422,7 @@ class Message(PartialMessage, Hashable): try: # if the channel doesn't have a guild attribute, we handle that - self.guild = channel.guild # type: ignore + self.guild = channel.guild except AttributeError: self.guild = state._get_guild(utils._get_as_snowflake(data, 'guild_id'))