aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/channel.py')
-rw-r--r--discord/channel.py12
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):