From 930c416ea7b399ebce3b12eefc66a6fedde0ac0c Mon Sep 17 00:00:00 2001 From: Maya <17090652+XuaTheGrate@users.noreply.github.com> Date: Wed, 14 Apr 2021 17:14:00 +1200 Subject: [PATCH] Fix exception for invalid channel types --- discord/guild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/guild.py b/discord/guild.py index d66645144..a0bcd2370 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