aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/invite.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/invite.py b/discord/invite.py
index 51244d0e..cfbbdf72 100644
--- a/discord/invite.py
+++ b/discord/invite.py
@@ -296,7 +296,7 @@ class Invite(Hashable):
channel_id = int(channel_data['id'])
channel_type = try_enum(ChannelType, channel_data['type'])
channel = PartialInviteChannel(id=channel_id, name=channel_data['name'], type=channel_type)
- if guild is not None:
+ if guild is not None and not isinstance(guild, PartialInviteGuild):
# Upgrade the partial data if applicable
channel = guild.get_channel(channel_id) or channel