diff options
| author | Sebastian Law <[email protected]> | 2020-06-28 00:45:58 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-06-28 03:45:58 -0400 |
| commit | b4b953bfc66adc235e06774b0481ceb847753793 (patch) | |
| tree | 2d0cbd871944e3a5184b2dbec75dc59ddabad6d5 /discord/channel.py | |
| parent | Fix a KeyError for channels with no category in Guild.by_category (diff) | |
| download | discord.py-b4b953bfc66adc235e06774b0481ceb847753793.tar.xz discord.py-b4b953bfc66adc235e06774b0481ceb847753793.zip | |
Fix various inconsistencies within the documentation (#5067)
Diffstat (limited to 'discord/channel.py')
| -rw-r--r-- | discord/channel.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/discord/channel.py b/discord/channel.py index 71e5580b..442f80b2 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -835,6 +835,11 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable): """|coro| A shortcut method to :meth:`Guild.create_text_channel` to create a :class:`TextChannel` in the category. + + Returns + ------- + :class:`TextChannel` + The channel that was just created. """ return await self.guild.create_text_channel(name, overwrites=overwrites, category=self, reason=reason, **options) @@ -842,6 +847,11 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable): """|coro| A shortcut method to :meth:`Guild.create_voice_channel` to create a :class:`VoiceChannel` in the category. + + Returns + ------- + :class:`VoiceChannel` + The channel that was just created. """ return await self.guild.create_voice_channel(name, overwrites=overwrites, category=self, reason=reason, **options) @@ -1026,7 +1036,7 @@ class DMChannel(discord.abc.Messageable, Hashable): @property def created_at(self): - """Returns the direct message channel's creation time in UTC.""" + """:class:`datetime.datetime`: Returns the direct message channel's creation time in UTC.""" return utils.snowflake_time(self.id) def permissions_for(self, user=None): |