Table of Contents

Method CrosspostMessageAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

CrosspostMessageAsync(DiscordMessage)

Publishes a message in a news channel to following channels

public Task<DiscordMessage> CrosspostMessageAsync(DiscordMessage message)

Parameters

message DiscordMessage

Message to publish

Returns

Task<DiscordMessage>

Exceptions

ArgumentException

Thrown when the message has already been crossposted

UnauthorizedException

Thrown when the current user doesn't have ManageWebhooks and/or SendMessages