Parse channel ids to names representation in messages

This commit is contained in:
Jeremy Zhang
2017-04-13 06:05:04 +00:00
parent b9b644b094
commit a7469f2940
2 changed files with 14 additions and 2 deletions

View File

@ -186,8 +186,8 @@ def get_guild_channels(guild_id):
result["read"] = False
result["write"] = False
if result["read"]:
result_channels.append(result)
#if result["read"]:
result_channels.append(result)
return sorted(result_channels, key=lambda k: k['channel']['position'])
def filter_guild_channel(guild_id, channel_id):