mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-23 19:34:23 +00:00
Clarify documentation on Message.publish
This commit is contained in:
parent
40227f75de
commit
94fa00fbfd
@ -978,8 +978,9 @@ class PartialMessage(Hashable):
|
|||||||
async def publish(self) -> None:
|
async def publish(self) -> None:
|
||||||
"""|coro|
|
"""|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.
|
You must have :attr:`~Permissions.send_messages` to do this.
|
||||||
|
|
||||||
If the message is not your own then :attr:`~Permissions.manage_messages`
|
If the message is not your own then :attr:`~Permissions.manage_messages`
|
||||||
@ -988,7 +989,8 @@ class PartialMessage(Hashable):
|
|||||||
Raises
|
Raises
|
||||||
-------
|
-------
|
||||||
Forbidden
|
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
|
HTTPException
|
||||||
Publishing the message failed.
|
Publishing the message failed.
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user