aboutsummaryrefslogtreecommitdiff
path: root/docs/api.rst
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-09-13 09:38:05 -0400
committerRapptz <[email protected]>2017-09-13 09:44:36 -0400
commit53b48904358866e62c6afec1a548424f12c7e1d1 (patch)
tree77d14c0e8e0bf62311f731e29bec9487cab684d3 /docs/api.rst
parent[commands] Fix NameError when given an invalid prefix. (diff)
downloaddiscord.py-53b48904358866e62c6afec1a548424f12c7e1d1.tar.xz
discord.py-53b48904358866e62c6afec1a548424f12c7e1d1.zip
Add category support.
This adds: * CategoryChannel, which represents a category * Guild.by_category() which traverses the channels grouping by category * Guild.categories to get a list of categories * abc.GuildChannel.category to get the category a channel belongs to * sync_permissions keyword argument to abc.GuildChannel.edit to sync permissions with a pre-existing or new category * category keyword argument to abc.GuildChannel.edit to move a channel to a category
Diffstat (limited to 'docs/api.rst')
-rw-r--r--docs/api.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/api.rst b/docs/api.rst
index 14381d64..5f6245ea 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -1912,6 +1912,13 @@ VoiceChannel
:members:
:inherited-members:
+CategoryChannel
+~~~~~~~~~~~~~
+
+.. autoclass:: CategoryChannel()
+ :members:
+ :inherited-members:
+
DMChannel
~~~~~~~~~