Method ForwardMessageAsync
- Namespace
- DisCatSharp.Net
- Assembly
- DisCatSharp.dll
ForwardMessageAsync(DiscordMessage, ulong, string?)
Forwards a message.
public Task<DiscordMessage> ForwardMessageAsync(DiscordMessage forwardMessage, ulong targetChannelId, string? content)
Parameters
forwardMessageDiscordMessageThe message to forward.
targetChannelIdulongThe target channel id to forward the message to.
contentstringThe content to attach.
Returns
Exceptions
- ArgumentException
Thrown when the
contentexceeds 2000 characters.