aboutsummaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-07-03 11:48:41 -0400
committerRapptz <[email protected]>2021-07-03 11:52:20 -0400
commit8b4dd34328f0d6217ffd5dab178fb8d5492dd30a (patch)
tree50aea10c5f5fc72f2ed9daa344529f02b5bfb99e /discord
parentChange Message.__repr__ to show inherited type name (diff)
downloaddiscord.py-8b4dd34328f0d6217ffd5dab178fb8d5492dd30a.tar.xz
discord.py-8b4dd34328f0d6217ffd5dab178fb8d5492dd30a.zip
Document TextChannel.start_thread return type
Diffstat (limited to 'discord')
-rw-r--r--discord/channel.py5
-rw-r--r--discord/message.py5
2 files changed, 10 insertions, 0 deletions
diff --git a/discord/channel.py b/discord/channel.py
index b1273ef8..5a213fe1 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -668,6 +668,11 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
You do not have permissions to start a thread.
HTTPException
Starting the thread failed.
+
+ Returns
+ --------
+ :class:`Thread`
+ The started thread
"""
if message is None:
diff --git a/discord/message.py b/discord/message.py
index 4d80ec39..825bda4d 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -1475,6 +1475,11 @@ class Message(Hashable):
Starting the thread failed.
InvalidArgument
This message does not have guild info attached.
+
+ Returns
+ --------
+ :class:`.Thread`
+ The started thread.
"""
if self.guild is None:
raise InvalidArgument('This message does not have guild info attached.')