From 94fa00fbfd6807268f907e65d35c74f97bbf236c Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 13 Feb 2023 23:49:59 -0500 Subject: [PATCH] Clarify documentation on Message.publish --- discord/message.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/discord/message.py b/discord/message.py index f05f15c29..f9d0dc733 100644 --- a/discord/message.py +++ b/discord/message.py @@ -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. """