Method CrosspostMessageAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
CrosspostMessageAsync(DiscordMessage)
Publishes a message in a news channel to following channels.
public Task<DiscordMessage> CrosspostMessageAsync(DiscordMessage message)
Parameters
message
DiscordMessageMessage to publish.
Returns
Exceptions
- ArgumentException
Thrown when the message has already been crossposted.
- UnauthorizedException
Thrown when the current user doesn't have ManageWebhooks and/or SendMessages