Browse Source
Fix exception for invalid channel types
pull/6725/head
Maya
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
|