aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Law <[email protected]>2020-12-22 04:18:32 -0800
committerGitHub <[email protected]>2020-12-22 07:18:32 -0500
commit36292a65ea79400291d25cc6ca0a95c94089d06e (patch)
tree53e968f89fa99cf18df2c034ee175023a7e0eace
parent[commands] Fix exception hierarchy documentation (diff)
downloaddiscord.py-36292a65ea79400291d25cc6ca0a95c94089d06e.tar.xz
discord.py-36292a65ea79400291d25cc6ca0a95c94089d06e.zip
remove extraneous assignment
-rw-r--r--discord/state.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/discord/state.py b/discord/state.py
index 983577ab..e05851c5 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -688,8 +688,6 @@ class ConnectionState:
log.debug('CHANNEL_CREATE referencing an unknown channel type %s. Discarding.', data['type'])
return
- channel = None
-
if ch_type in (ChannelType.group, ChannelType.private):
channel_id = int(data['id'])
if self._get_private_channel(channel_id) is None: