aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/abc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/abc.py b/discord/abc.py
index 0ac87d13..9dffb8d2 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -227,7 +227,7 @@ class GuildChannel:
# not there somehow lol
return
else:
- index = next((i for i, c in enumerate(channels) if c.position >= position), -1)
+ index = next((i for i, c in enumerate(channels) if c.position >= position), len(channels))
# add ourselves at our designated position
channels.insert(index, self)