diff options
| author | Rapptz <[email protected]> | 2018-03-25 04:00:47 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-03-25 04:00:47 -0400 |
| commit | 796ff6d7e6f05a8dfa85b82e259e34a0891aec78 (patch) | |
| tree | 1e1f44f369ab7000ba2e2da0e01556421dc980e4 | |
| parent | [commands] Don't handle single quotes. (diff) | |
| download | discord.py-796ff6d7e6f05a8dfa85b82e259e34a0891aec78.tar.xz discord.py-796ff6d7e6f05a8dfa85b82e259e34a0891aec78.zip | |
Sort voice channels below text channels in Guild.by_category
| -rw-r--r-- | discord/guild.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/guild.py b/discord/guild.py index 6141d0f2..752a2909 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -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()] |