From 7dd5a44c70ba4a8357179a4c5fba86e55c52320e Mon Sep 17 00:00:00 2001 From: Adrian Edwards <17362949+MoralCode@users.noreply.github.com> Date: Sun, 18 Oct 2020 16:13:22 -0700 Subject: [PATCH] link to documentation explaining the magic number for channel type --- discover_overlay/text_settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discover_overlay/text_settings.py b/discover_overlay/text_settings.py index 2819869..5057c0b 100644 --- a/discover_overlay/text_settings.py +++ b/discover_overlay/text_settings.py @@ -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()