dev into staging #414

Merged
edraft merged 58 commits from dev into staging 2023-11-04 17:47:24 +01:00
Showing only changes of commit 9bbfe498cc - Show all commits

View File

@ -25,7 +25,7 @@ class GuildQuery(QueryABC):
)
def _resolve_channels(self, g: Guild, *_, filter=None):
channels = List(any).extend(g.channels)
channels = List(any).extend(g.channels).order_by(lambda x: x.position)
if filter is None:
return channels
@ -39,4 +39,4 @@ class GuildQuery(QueryABC):
if "type" in filter:
channels = channels.where(lambda c: type(c).__name__ == filter["type"])
return channels.order_by(lambda x: x.position)
return channels