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
ulongID of the news channel the message to crosspost belongs to
messageId
ulongID of the message to crosspost
Returns
- Task<DiscordMessage>
Exceptions
- UnauthorizedException
Thrown when the current user doesn't have ManageWebhooks and/or SendMessages