Table of Contents

Interface IMessageProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public interface IMessageProperties

Properties

AllowedMentions

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

AllowedMentionsProperties? AllowedMentions { get; set; }

Property Value

AllowedMentionsProperties

Attachments

A list of attachments to include in the message.

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

Property Value

IEnumerable<AttachmentProperties>

Components

A list of components to include in the message.

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.

string? Content { get; set; }

Property Value

string

Embeds

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

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

Property Value

IEnumerable<EmbedProperties>

Flags

Includes additional information about the message's state.

MessageFlags? Flags { get; set; }

Property Value

MessageFlags?

Methods

AddAttachments(params IEnumerable<AttachmentProperties>)

A list of attachments to include in the message.

IMessageProperties AddAttachments(params IEnumerable<AttachmentProperties> attachments)

Parameters

attachments IEnumerable<AttachmentProperties>

Returns

IMessageProperties

AddComponents(params IEnumerable<IMessageComponentProperties>)

A list of components to include in the message.

IMessageProperties AddComponents(params IEnumerable<IMessageComponentProperties> components)

Parameters

components IEnumerable<IMessageComponentProperties>

Returns

IMessageProperties

AddEmbeds(params IEnumerable<EmbedProperties>)

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

IMessageProperties AddEmbeds(params IEnumerable<EmbedProperties> embeds)

Parameters

embeds IEnumerable<EmbedProperties>

Returns

IMessageProperties

WithAllowedMentions(AllowedMentionsProperties?)

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

IMessageProperties WithAllowedMentions(AllowedMentionsProperties? allowedMentions)

Parameters

allowedMentions AllowedMentionsProperties

Returns

IMessageProperties

WithAttachments(IEnumerable<AttachmentProperties>?)

A list of attachments to include in the message.

IMessageProperties WithAttachments(IEnumerable<AttachmentProperties>? attachments)

Parameters

attachments IEnumerable<AttachmentProperties>

Returns

IMessageProperties

WithComponents(IEnumerable<IMessageComponentProperties>?)

A list of components to include in the message.

IMessageProperties WithComponents(IEnumerable<IMessageComponentProperties>? components)

Parameters

components IEnumerable<IMessageComponentProperties>

Returns

IMessageProperties

WithContent(string?)

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

IMessageProperties WithContent(string? content)

Parameters

content string

Returns

IMessageProperties

WithEmbeds(IEnumerable<EmbedProperties>?)

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

IMessageProperties WithEmbeds(IEnumerable<EmbedProperties>? embeds)

Parameters

embeds IEnumerable<EmbedProperties>

Returns

IMessageProperties

WithFlags(MessageFlags?)

Includes additional information about the message's state.

IMessageProperties WithFlags(MessageFlags? flags)

Parameters

flags MessageFlags?

Returns

IMessageProperties