From b4b953bfc66adc235e06774b0481ceb847753793 Mon Sep 17 00:00:00 2001 From: Sebastian Law <44045823+SebbyLaw@users.noreply.github.com> Date: Sun, 28 Jun 2020 00:45:58 -0700 Subject: Fix various inconsistencies within the documentation (#5067) --- discord/channel.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'discord/channel.py') 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): -- cgit v1.2.3