aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaya <[email protected]>2021-04-14 17:14:00 +1200
committerGitHub <[email protected]>2021-04-14 01:14:00 -0400
commit930c416ea7b399ebce3b12eefc66a6fedde0ac0c (patch)
tree1d4aee9214eb9ee8e6383db78770be3c12313569
parentFix fail_if_not_exists not being set when constructed with state (diff)
downloaddiscord.py-930c416ea7b399ebce3b12eefc66a6fedde0ac0c.tar.xz
discord.py-930c416ea7b399ebce3b12eefc66a6fedde0ac0c.zip
Fix exception for invalid channel types
-rw-r--r--discord/guild.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/guild.py b/discord/guild.py
index d6664514..a0bcd237 100644
--- a/discord/guild.py
+++ b/discord/guild.py
@@ -1324,7 +1324,7 @@ class Guild(Hashable):
def convert(d):
factory, ch_type = _channel_factory(d['type'])
if factory is None:
- raise InvalidData('Unknown channel type {type} for channel ID {id}.'.format_map(data))
+ raise InvalidData('Unknown channel type {type} for channel ID {id}.'.format_map(d))
channel = factory(guild=self, state=self._state, data=d)
return channel