Clarify documentation on Message.publish

This commit is contained in:
Rapptz 2023-02-13 23:49:59 -05:00
parent 40227f75de
commit 94fa00fbfd

View File

@ -978,8 +978,9 @@ class PartialMessage(Hashable):
async def publish(self) -> None:
"""|coro|
Publishes this message to your announcement channel.
Publishes this message to the channel's followers.
The message must have been sent in a news channel.
You must have :attr:`~Permissions.send_messages` to do this.
If the message is not your own then :attr:`~Permissions.manage_messages`
@ -988,7 +989,8 @@ class PartialMessage(Hashable):
Raises
-------
Forbidden
You do not have the proper permissions to publish this message.
You do not have the proper permissions to publish this message
or the channel is not a news channel.
HTTPException
Publishing the message failed.
"""