Table of Contents

Class ReplyMessageProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class ReplyMessageProperties : IMessageProperties
Inheritance
ReplyMessageProperties
Implements
Inherited Members

Constructors

ReplyMessageProperties()

public ReplyMessageProperties()

Properties

AllowedMentions

Defines which users and roles the message is allowed to mention.

public AllowedMentionsProperties? AllowedMentions { get; set; }

Property Value

AllowedMentionsProperties

Attachments

A list of attachments to include in the message.

public IEnumerable<AttachmentProperties>? Attachments { get; set; }

Property Value

IEnumerable<AttachmentProperties>

Components

A list of components to include in the message.

public IEnumerable<IMessageComponentProperties>? Components { get; set; }

Property Value

IEnumerable<IMessageComponentProperties>

Content

The text contents of a message, limited to 2000 characters. This limit is raised to 4000 characters for Discord Nitro subscribers.

public string? Content { get; set; }

Property Value

string

Embeds

A list of up to 10 embeds to include, totalling up to 6000 characters.

public IEnumerable<EmbedProperties>? Embeds { get; set; }

Property Value

IEnumerable<EmbedProperties>

FailIfNotExists

public bool? FailIfNotExists { get; set; }

Property Value

bool?

Flags

Includes additional information about the message's state.

public MessageFlags? Flags { get; set; }

Property Value

MessageFlags?

Nonce

public NonceProperties? Nonce { get; set; }

Property Value

NonceProperties

Poll

public MessagePollProperties? Poll { get; set; }

Property Value

MessagePollProperties

StickerIds

public IEnumerable<ulong>? StickerIds { get; set; }

Property Value

IEnumerable<ulong>

Tts

public bool Tts { get; set; }

Property Value

bool

Methods

AddAttachments(params IEnumerable<AttachmentProperties>)

A list of attachments to include in the message.

public ReplyMessageProperties AddAttachments(params IEnumerable<AttachmentProperties> attachments)

Parameters

attachments IEnumerable<AttachmentProperties>

Returns

ReplyMessageProperties

AddComponents(params IEnumerable<IMessageComponentProperties>)

A list of components to include in the message.

public ReplyMessageProperties AddComponents(params IEnumerable<IMessageComponentProperties> components)

Parameters

components IEnumerable<IMessageComponentProperties>

Returns

ReplyMessageProperties

AddEmbeds(params IEnumerable<EmbedProperties>)

A list of up to 10 embeds to include, totalling up to 6000 characters.

public ReplyMessageProperties AddEmbeds(params IEnumerable<EmbedProperties> embeds)

Parameters

embeds IEnumerable<EmbedProperties>

Returns

ReplyMessageProperties

AddStickerIds(params IEnumerable<ulong>)

public ReplyMessageProperties AddStickerIds(params IEnumerable<ulong> stickerIds)

Parameters

stickerIds IEnumerable<ulong>

Returns

ReplyMessageProperties

ToMessageProperties(ulong)

public MessageProperties ToMessageProperties(ulong messageReferenceId)

Parameters

messageReferenceId ulong

Returns

MessageProperties

WithAllowedMentions(AllowedMentionsProperties?)

Defines which users and roles the message is allowed to mention.

public ReplyMessageProperties WithAllowedMentions(AllowedMentionsProperties? allowedMentions)

Parameters

allowedMentions AllowedMentionsProperties

Returns

ReplyMessageProperties

WithAttachments(IEnumerable<AttachmentProperties>?)

A list of attachments to include in the message.

public ReplyMessageProperties WithAttachments(IEnumerable<AttachmentProperties>? attachments)

Parameters

attachments IEnumerable<AttachmentProperties>

Returns

ReplyMessageProperties

WithComponents(IEnumerable<IMessageComponentProperties>?)

A list of components to include in the message.

public ReplyMessageProperties WithComponents(IEnumerable<IMessageComponentProperties>? components)

Parameters

components IEnumerable<IMessageComponentProperties>

Returns

ReplyMessageProperties

WithContent(string?)

The text contents of a message, limited to 2000 characters. This limit is raised to 4000 characters for Discord Nitro subscribers.

public ReplyMessageProperties WithContent(string? content)

Parameters

content string

Returns

ReplyMessageProperties

WithEmbeds(IEnumerable<EmbedProperties>?)

A list of up to 10 embeds to include, totalling up to 6000 characters.

public ReplyMessageProperties WithEmbeds(IEnumerable<EmbedProperties>? embeds)

Parameters

embeds IEnumerable<EmbedProperties>

Returns

ReplyMessageProperties

WithFailIfNotExists(bool?)

public ReplyMessageProperties WithFailIfNotExists(bool? failIfNotExists = true)

Parameters

failIfNotExists bool?

Returns

ReplyMessageProperties

WithFlags(MessageFlags?)

Includes additional information about the message's state.

public ReplyMessageProperties WithFlags(MessageFlags? flags)

Parameters

flags MessageFlags?

Returns

ReplyMessageProperties

WithNonce(NonceProperties?)

public ReplyMessageProperties WithNonce(NonceProperties? nonce)

Parameters

nonce NonceProperties

Returns

ReplyMessageProperties

WithPoll(MessagePollProperties?)

public ReplyMessageProperties WithPoll(MessagePollProperties? poll)

Parameters

poll MessagePollProperties

Returns

ReplyMessageProperties

WithStickerIds(IEnumerable<ulong>?)

public ReplyMessageProperties WithStickerIds(IEnumerable<ulong>? stickerIds)

Parameters

stickerIds IEnumerable<ulong>

Returns

ReplyMessageProperties

WithTts(bool)

public ReplyMessageProperties WithTts(bool tts = true)

Parameters

tts bool

Returns

ReplyMessageProperties

Operators

implicit operator ReplyMessageProperties(string)

public static implicit operator ReplyMessageProperties(string content)

Parameters

content string

Returns

ReplyMessageProperties