Table of Contents

Class Message

Namespace
Fluxer.Net
Assembly
Fluxer.Net.dll

Fluxer entity with client attached.

public class Message : Entity, IMessage, ISnowflake
Inheritance
object
Message
Implements
Derived
Extension Methods

Properties

Attachments

public Attachment[]? Attachments { get; }

Property Value

Attachment[]

Author

public User Author { get; }

Property Value

User

Call

public MessageCall? Call { get; }

Property Value

MessageCall

ChannelId

The ID of the channel this message was sent in.

public ulong ChannelId { get; }

Property Value

ulong

Content

The text content of the message.

public string Content { get; }

Property Value

string

CreatedAt

Object created at UTC date.

public DateTimeOffset CreatedAt { get; }

Property Value

DateTimeOffset

EditedAt

The ISO 8601 timestamp of when the message was last edited.

public DateTimeOffset? EditedAt { get; }

Property Value

DateTimeOffset?

Embeds

public IEnumerable<Embed>? Embeds { get; }

Property Value

IEnumerable<Embed>

Flags

Message flags bitfield.

public MessageFlag Flags { get; }

Property Value

MessageFlag

Id

Unique identifier (snowflake) for the object.

public ulong Id { get; }

Property Value

ulong

IsPinned

Whether the message is pinned.

public bool IsPinned { get; }

Property Value

bool

IsTTS

Whether the message was sent as text-to-speech.

public bool IsTTS { get; }

Property Value

bool

MentionEveryone

Whether the message mentions @everyone.

public bool MentionEveryone { get; }

Property Value

bool

MentionRoles

The role IDs mentioned in the message.

public ulong[]? MentionRoles { get; }

Property Value

ulong[]

Mentions

public IEnumerable<User>? Mentions { get; }

Property Value

IEnumerable<User>

MessageReference

public MessageReference? MessageReference { get; }

Property Value

MessageReference

MessageSnapshots

public MessageSnapshot[]? MessageSnapshots { get; }

Property Value

MessageSnapshot[]

Nonce

A client-provided value for message deduplication.

public string? Nonce { get; }

Property Value

string

Reactions

public MessageReaction[]? Reactions { get; }

Property Value

MessageReaction[]

Stickers

public Sticker[]? Stickers { get; }

Property Value

Sticker[]

Type

The type of message.

public MessageType Type { get; }

Property Value

MessageType

WebhookId

The ID of the webhook that sent this message.

public ulong? WebhookId { get; }

Property Value

ulong?

Methods

Create(FluxerBaseClient, MessageJson)

Create a Message object from json.

public static Message Create(FluxerBaseClient client, MessageJson json)

Parameters

client FluxerBaseClient
json MessageJson

Returns

Message