link to documentation explaining the magic number for channel type
This commit is contained in:
parent
b1115a3fe4
commit
7dd5a44c70
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue