From 8b4dd34328f0d6217ffd5dab178fb8d5492dd30a Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 3 Jul 2021 11:48:41 -0400 Subject: [PATCH] Document TextChannel.start_thread return type --- discord/channel.py | 5 +++++ discord/message.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/discord/channel.py b/discord/channel.py index b1273ef85..5a213fe1c 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 4d80ec39f..825bda4db 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.')