aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorapple502j <[email protected]>2019-10-18 23:26:32 +0900
committerRapptz <[email protected]>2019-10-20 05:20:15 -0400
commit30c9e333849aa1c7f3c93105a448b567c6be56c7 (patch)
treedfd30f20657fff68efccd1b284eb64117f26e383
parent[commands] Allow converters from custom discord.ext extensions (diff)
downloaddiscord.py-30c9e333849aa1c7f3c93105a448b567c6be56c7.tar.xz
discord.py-30c9e333849aa1c7f3c93105a448b567c6be56c7.zip
[docs] category_id is Optional
-rw-r--r--discord/channel.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/discord/channel.py b/discord/channel.py
index 62bc3d3f..de938142 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -79,8 +79,8 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
The guild the channel belongs to.
id: :class:`int`
The channel ID.
- category_id: :class:`int`
- The category channel ID this channel belongs to.
+ category_id: Optional[:class:`int`]
+ The category channel ID this channel belongs to, if applicable.
topic: Optional[:class:`str`]
The channel's topic. None if it doesn't exist.
position: :class:`int`
@@ -484,8 +484,8 @@ class VoiceChannel(discord.abc.Connectable, discord.abc.GuildChannel, Hashable):
The guild the channel belongs to.
id: :class:`int`
The channel ID.
- category_id: :class:`int`
- The category channel ID this channel belongs to.
+ category_id: Optional[:class:`int`]
+ The category channel ID this channel belongs to, if applicable.
position: :class:`int`
The position in the channel list. This is a number that starts at 0. e.g. the
top channel is position 0.