Table of Contents

Class Quote

Namespace
Kook
Assembly
Kook.Net.Core.dll

Represents a quoted message.

public class Quote : IQuote
Inheritance
Quote
Implements
Inherited Members

Constructors

Quote(Guid)

Initializes a new instance of the Quote class.

[Obsolete("Use MessageReference instead.")]
public Quote(Guid quotedMessageId)

Parameters

quotedMessageId Guid

The quoted message identifier.

Properties

Author

Gets the author of this message.

public IUser Author { get; }

Property Value

IUser

Content

Gets the content of the message this quote refers to.

public string Content { get; }

Property Value

string

A string that contains the body of the message; note that this field may be empty or the original code if the message is not a text based message.

CreateAt

Gets the time this message was sent.

public DateTimeOffset CreateAt { get; }

Property Value

DateTimeOffset

Time of when the message was sent.

Empty

Gets an empty quote whose quoted message is null.

[Obsolete("Use MessageReference.Empty instead.")]
public static MessageReference Empty { get; }

Property Value

MessageReference

Remarks

Used to delete a quote when modifying a message.

QuotedMessageId

Gets the identifier of the message this quote refers to.

public Guid QuotedMessageId { get; }

Property Value

Guid

Type

Gets the type of the message this quote refers to.

public MessageType Type { get; }

Property Value

MessageType