Fixed channel sort
All checks were successful
Deploy dev on push / on-push-deploy_sh-edraft (push) Successful in 4m43s
All checks were successful
Deploy dev on push / on-push-deploy_sh-edraft (push) Successful in 4m43s
This commit is contained in:
parent
b21c9f894f
commit
9bbfe498cc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user