From 869aeb5f64e8f773465daf78e4a80fba8e9677da 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 a94f553f3..a169a5008 100644 --- a/discord/message.py +++ b/discord/message.py @@ -841,8 +841,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` @@ -851,7 +852,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. """