Flip comparison in Guild.by_category.

This commit is contained in:
Rapptz 2018-03-31 22:55:42 -04:00
parent ab78613c13
commit 87a7efc410

View File

@ -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()]