mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-06-16 19:35:24 +02:00
Sort channels listing
This commit is contained in:
@ -180,7 +180,7 @@ def get_guild_channels(guild_id):
|
|||||||
|
|
||||||
if result["read"]:
|
if result["read"]:
|
||||||
result_channels.append(result)
|
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):
|
def filter_guild_channel(guild_id, channel_id):
|
||||||
channels = get_guild_channels(guild_id)
|
channels = get_guild_channels(guild_id)
|
||||||
|
Reference in New Issue
Block a user