publish

open suspend fun publish(): Message(source)

Requests to publish this message to following channels, this function assumes the message was created in an announcement channel.

Requires the Permission.SendMessages permission if the bot created the message, or the Permission.ManageChannels permission otherwise.

Return

The updated message after publishing.

Throws

if something went wrong during the request.