Table of Contents

Class MessageReferenceProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class MessageReferenceProperties
Inheritance
MessageReferenceProperties
Inherited Members

Properties

ChannelId

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("channel_id")]
public ulong? ChannelId { get; set; }

Property Value

ulong?

FailIfNotExists

[JsonPropertyName("fail_if_not_exists")]
public bool FailIfNotExists { get; set; }

Property Value

bool

MessageId

[JsonPropertyName("message_id")]
public ulong MessageId { get; set; }

Property Value

ulong

Type

[JsonPropertyName("type")]
public MessageReferenceType Type { get; set; }

Property Value

MessageReferenceType

Methods

Forward(ulong, ulong, bool)

public static MessageReferenceProperties Forward(ulong channelId, ulong messageId, bool failIfNotExists = true)

Parameters

channelId ulong
messageId ulong
failIfNotExists bool

Returns

MessageReferenceProperties

Reply(ulong, bool)

public static MessageReferenceProperties Reply(ulong messageId, bool failIfNotExists = true)

Parameters

messageId ulong
failIfNotExists bool

Returns

MessageReferenceProperties

WithChannelId(ulong?)

public MessageReferenceProperties WithChannelId(ulong? channelId)

Parameters

channelId ulong?

Returns

MessageReferenceProperties

WithFailIfNotExists(bool)

public MessageReferenceProperties WithFailIfNotExists(bool failIfNotExists = true)

Parameters

failIfNotExists bool

Returns

MessageReferenceProperties

WithMessageId(ulong)

public MessageReferenceProperties WithMessageId(ulong messageId)

Parameters

messageId ulong

Returns

MessageReferenceProperties

WithType(MessageReferenceType)

public MessageReferenceProperties WithType(MessageReferenceType type)

Parameters

type MessageReferenceType

Returns

MessageReferenceProperties