Table of Contents

Class ForumGuildThreadMessageProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll

Represents a message sent in a ForumGuildThread.

public class ForumGuildThreadMessageProperties : IMessageProperties
Inheritance
ForumGuildThreadMessageProperties
Implements
Inherited Members

Constructors

ForumGuildThreadMessageProperties()

public ForumGuildThreadMessageProperties()

Properties

AllowedMentions

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

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("allowed_mentions")]
public AllowedMentionsProperties? AllowedMentions { get; set; }

Property Value

AllowedMentionsProperties

Attachments

A list of attachments to include in the message.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonConverter(typeof(AttachmentPropertiesIEnumerableConverter))]
[JsonPropertyName("attachments")]
public IEnumerable<AttachmentProperties>? Attachments { get; set; }

Property Value

IEnumerable<AttachmentProperties>

Components

A list of components to include in the message.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("components")]
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.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("content")]
public string? Content { get; set; }

Property Value

string

Embeds

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

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("embeds")]
public IEnumerable<EmbedProperties>? Embeds { get; set; }

Property Value

IEnumerable<EmbedProperties>

Flags

Includes additional information about the message's state.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("flags")]
public MessageFlags? Flags { get; set; }

Property Value

MessageFlags?

StickerIds

A list of up to 3 sticker IDs to include in the message.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("sticker_ids")]
public IEnumerable<ulong>? StickerIds { get; set; }

Property Value

IEnumerable<ulong>

Methods

AddAttachments(params IEnumerable<AttachmentProperties>)

A list of attachments to include in the message.

public ForumGuildThreadMessageProperties AddAttachments(params IEnumerable<AttachmentProperties> attachments)

Parameters

attachments IEnumerable<AttachmentProperties>

Returns

ForumGuildThreadMessageProperties

AddComponents(params IEnumerable<IMessageComponentProperties>)

A list of components to include in the message.

public ForumGuildThreadMessageProperties AddComponents(params IEnumerable<IMessageComponentProperties> components)

Parameters

components IEnumerable<IMessageComponentProperties>

Returns

ForumGuildThreadMessageProperties

AddEmbeds(params IEnumerable<EmbedProperties>)

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

public ForumGuildThreadMessageProperties AddEmbeds(params IEnumerable<EmbedProperties> embeds)

Parameters

embeds IEnumerable<EmbedProperties>

Returns

ForumGuildThreadMessageProperties

AddStickerIds(params IEnumerable<ulong>)

A list of up to 3 sticker IDs to include in the message.

public ForumGuildThreadMessageProperties AddStickerIds(params IEnumerable<ulong> stickerIds)

Parameters

stickerIds IEnumerable<ulong>

Returns

ForumGuildThreadMessageProperties

WithAllowedMentions(AllowedMentionsProperties?)

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

public ForumGuildThreadMessageProperties WithAllowedMentions(AllowedMentionsProperties? allowedMentions)

Parameters

allowedMentions AllowedMentionsProperties

Returns

ForumGuildThreadMessageProperties

WithAttachments(IEnumerable<AttachmentProperties>?)

A list of attachments to include in the message.

public ForumGuildThreadMessageProperties WithAttachments(IEnumerable<AttachmentProperties>? attachments)

Parameters

attachments IEnumerable<AttachmentProperties>

Returns

ForumGuildThreadMessageProperties

WithComponents(IEnumerable<IMessageComponentProperties>?)

A list of components to include in the message.

public ForumGuildThreadMessageProperties WithComponents(IEnumerable<IMessageComponentProperties>? components)

Parameters

components IEnumerable<IMessageComponentProperties>

Returns

ForumGuildThreadMessageProperties

WithContent(string?)

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

public ForumGuildThreadMessageProperties WithContent(string? content)

Parameters

content string

Returns

ForumGuildThreadMessageProperties

WithEmbeds(IEnumerable<EmbedProperties>?)

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

public ForumGuildThreadMessageProperties WithEmbeds(IEnumerable<EmbedProperties>? embeds)

Parameters

embeds IEnumerable<EmbedProperties>

Returns

ForumGuildThreadMessageProperties

WithFlags(MessageFlags?)

Includes additional information about the message's state.

public ForumGuildThreadMessageProperties WithFlags(MessageFlags? flags)

Parameters

flags MessageFlags?

Returns

ForumGuildThreadMessageProperties

WithStickerIds(IEnumerable<ulong>?)

A list of up to 3 sticker IDs to include in the message.

public ForumGuildThreadMessageProperties WithStickerIds(IEnumerable<ulong>? stickerIds)

Parameters

stickerIds IEnumerable<ulong>

Returns

ForumGuildThreadMessageProperties

Operators

implicit operator ForumGuildThreadMessageProperties(string)

public static implicit operator ForumGuildThreadMessageProperties(string content)

Parameters

content string

Returns

ForumGuildThreadMessageProperties