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
forwardMessage
DiscordMessageThe message to forward.
targetChannelId
ulongThe target channel id to forward the message to.
content
stringThe content to attach.
Returns
Exceptions
- ArgumentException
Thrown when the
content
exceeds 2000 characters.