link to documentation explaining the magic number for channel type

This commit is contained in:
Adrian Edwards 2020-10-18 16:13:22 -07:00
parent b1115a3fe4
commit 7dd5a44c70

View file

@ -105,6 +105,8 @@ class TextSettingsWindow(SettingsWindow):
self.list_channels = in_list
self.list_channels_keys = []
for key in in_list.keys():
# filter for only text channels
# https://discord.com/developers/docs/resources/channel#channel-object-channel-types
if in_list[key]["type"] == 0:
self.list_channels_keys.append(key)
self.list_channels_keys.sort()