Table of Contents

Method CrosspostMessageAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

CrosspostMessageAsync(ulong, ulong)

Publishes a message in a news channel to following channels

public Task<DiscordMessage> CrosspostMessageAsync(ulong channelId, ulong messageId)

Parameters

channelId ulong

ID of the news channel the message to crosspost belongs to

messageId ulong

ID of the message to crosspost

Returns

Task<DiscordMessage>

Exceptions

UnauthorizedException

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