mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Flip comparison in Guild.by_category.
This commit is contained in:
parent
ab78613c13
commit
87a7efc410
@ -340,7 +340,7 @@ class Guild(Hashable):
|
||||
|
||||
def key(t):
|
||||
k, v = t
|
||||
return ((isinstance(k, TextChannel), k.position, k.id) if k else (-1, -1), v)
|
||||
return ((not isinstance(k, TextChannel), k.position, k.id) if k else (-1, -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