Table of Contents

Class InteractionMessageProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class InteractionMessageProperties : IHttpSerializable, IMessageProperties
Inheritance
InteractionMessageProperties
Implements
Inherited Members

Constructors

InteractionMessageProperties()

public InteractionMessageProperties()

Properties

AllowedMentions

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

Property Value

AllowedMentionsProperties

Attachments

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

Property Value

IEnumerable<AttachmentProperties>

Components

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("components")]
public IEnumerable<ComponentProperties>? Components { get; set; }

Property Value

IEnumerable<ComponentProperties>

Content

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

Property Value

string

Embeds

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

Property Value

IEnumerable<EmbedProperties>

Flags

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

Property Value

MessageFlags?

Poll

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("poll")]
public MessagePollProperties? Poll { get; set; }

Property Value

MessagePollProperties

Tts

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("tts")]
public bool Tts { get; set; }

Property Value

bool

Methods

AddAttachments(params AttachmentProperties[])

public InteractionMessageProperties AddAttachments(params AttachmentProperties[] attachments)

Parameters

attachments AttachmentProperties[]

Returns

InteractionMessageProperties

AddAttachments(IEnumerable<AttachmentProperties>)

public InteractionMessageProperties AddAttachments(IEnumerable<AttachmentProperties> attachments)

Parameters

attachments IEnumerable<AttachmentProperties>

Returns

InteractionMessageProperties

AddComponents(params ComponentProperties[])

public InteractionMessageProperties AddComponents(params ComponentProperties[] components)

Parameters

components ComponentProperties[]

Returns

InteractionMessageProperties

AddComponents(IEnumerable<ComponentProperties>)

public InteractionMessageProperties AddComponents(IEnumerable<ComponentProperties> components)

Parameters

components IEnumerable<ComponentProperties>

Returns

InteractionMessageProperties

AddEmbeds(params EmbedProperties[])

public InteractionMessageProperties AddEmbeds(params EmbedProperties[] embeds)

Parameters

embeds EmbedProperties[]

Returns

InteractionMessageProperties

AddEmbeds(IEnumerable<EmbedProperties>)

public InteractionMessageProperties AddEmbeds(IEnumerable<EmbedProperties> embeds)

Parameters

embeds IEnumerable<EmbedProperties>

Returns

InteractionMessageProperties

Serialize()

Serializes the object or its part into HttpContent.

public HttpContent Serialize()

Returns

HttpContent

WithAllowedMentions(AllowedMentionsProperties?)

public InteractionMessageProperties WithAllowedMentions(AllowedMentionsProperties? allowedMentions)

Parameters

allowedMentions AllowedMentionsProperties

Returns

InteractionMessageProperties

WithAttachments(IEnumerable<AttachmentProperties>?)

public InteractionMessageProperties WithAttachments(IEnumerable<AttachmentProperties>? attachments)

Parameters

attachments IEnumerable<AttachmentProperties>

Returns

InteractionMessageProperties

WithComponents(IEnumerable<ComponentProperties>?)

public InteractionMessageProperties WithComponents(IEnumerable<ComponentProperties>? components)

Parameters

components IEnumerable<ComponentProperties>

Returns

InteractionMessageProperties

WithContent(string?)

public InteractionMessageProperties WithContent(string? content)

Parameters

content string

Returns

InteractionMessageProperties

WithEmbeds(IEnumerable<EmbedProperties>?)

public InteractionMessageProperties WithEmbeds(IEnumerable<EmbedProperties>? embeds)

Parameters

embeds IEnumerable<EmbedProperties>

Returns

InteractionMessageProperties

WithFlags(MessageFlags?)

public InteractionMessageProperties WithFlags(MessageFlags? flags)

Parameters

flags MessageFlags?

Returns

InteractionMessageProperties

WithPoll(MessagePollProperties?)

public InteractionMessageProperties WithPoll(MessagePollProperties? poll)

Parameters

poll MessagePollProperties

Returns

InteractionMessageProperties

WithTts(bool)

public InteractionMessageProperties WithTts(bool tts = true)

Parameters

tts bool

Returns

InteractionMessageProperties

Operators

implicit operator InteractionMessageProperties(string)

public static implicit operator InteractionMessageProperties(string content)

Parameters

content string

Returns

InteractionMessageProperties