Document TextChannel.start_thread return type
This commit is contained in:
parent
3d0dd5bc1b
commit
8b4dd34328
@ -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:
|
||||
|
@ -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.')
|
||||
|
Loading…
x
Reference in New Issue
Block a user