diff options
| author | Rapptz <[email protected]> | 2017-09-13 09:38:05 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-09-13 09:44:36 -0400 |
| commit | 53b48904358866e62c6afec1a548424f12c7e1d1 (patch) | |
| tree | 77d14c0e8e0bf62311f731e29bec9487cab684d3 /docs/migrating.rst | |
| parent | [commands] Fix NameError when given an invalid prefix. (diff) | |
| download | discord.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/migrating.rst')
| -rw-r--r-- | docs/migrating.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/migrating.rst b/docs/migrating.rst index c0434626..57d4f3a6 100644 --- a/docs/migrating.rst +++ b/docs/migrating.rst @@ -366,11 +366,15 @@ They will be enumerated here. **Added** - :class:`Attachment` to represent a discord attachment. +- :class:`CategoryChannel` to represent a channel category. - :attr:`VoiceChannel.members` for fetching members connected to a voice channel. - :attr:`TextChannel.members` for fetching members that can see the channel. - :attr:`Role.members` for fetching members that have the role. - :attr:`Guild.text_channels` for fetching text channels only. - :attr:`Guild.voice_channels` for fetching voice channels only. +- :attr:`Guild.categories` for fetching channel categories only. +- :attr:`TextChannel.category` and :attr:`VoiceChannel.category` to get the category a channel belongs to. +- :meth:`Guild.by_category` to get channels grouped by their category. - :attr:`Guild.chunked` to check member chunking status. - :attr:`Guild.explicit_content_filter` to fetch the content filter. - :attr:`Guild.shard_id` to get a guild's Shard ID if you're sharding. |