Discore
Show / Hide Table of Contents

Method Update

| Improve this Doc View Source

Update(DiscordMessage, DiscordPartialMessage)

Updates a message with a partial version of the same message.

This is primarily used for obtaining the full message from a message update event, which only supplies the changes rather than the full message.
Declaration
public static DiscordMessage Update(DiscordMessage message, DiscordPartialMessage withPartial)
Parameters
Type Name Description
DiscordMessage message
DiscordPartialMessage withPartial
Returns
Type Description
DiscordMessage
Exceptions
Type Condition
ArgumentException

Thrown if the IDs of each message do not match.

ArgumentNullException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX