mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Sort voice channels below text channels in Guild.by_category
This commit is contained in:
parent
f176309179
commit
796ff6d7e6
@ -340,7 +340,7 @@ class Guild(Hashable):
|
||||
|
||||
def key(t):
|
||||
k, v = t
|
||||
return ((k.position, k.id) if k else (-1, -1), v)
|
||||
return ((isinstance(k, TextChannel), k.position, k.id) if k else (-1, -1), v)
|
||||
|
||||
_get = self._channels.get
|
||||
as_list = [(_get(k), v) for k, v in grouped.items()]
|
||||
|
Loading…
x
Reference in New Issue
Block a user