mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Sort channels listing
This commit is contained in:
parent
50b216d23a
commit
6535240bbe
@ -180,7 +180,7 @@ def get_guild_channels(guild_id):
|
||||
|
||||
if result["read"]:
|
||||
result_channels.append(result)
|
||||
return result_channels
|
||||
return sorted(result_channels, key=lambda k: k['channel']['position'])
|
||||
|
||||
def filter_guild_channel(guild_id, channel_id):
|
||||
channels = get_guild_channels(guild_id)
|
||||
|
Loading…
Reference in New Issue
Block a user