Class Message
Fluxer entity with client attached.
public class Message : Entity, IMessage, ISnowflake
- Inheritance
-
objectMessage
- Implements
- Derived
- Extension Methods
Properties
Attachments
public Attachment[]? Attachments { get; }
Property Value
Author
public User Author { get; }
Property Value
Call
public MessageCall? Call { get; }
Property Value
ChannelId
The ID of the channel this message was sent in.
public ulong ChannelId { get; }
Property Value
Content
The text content of the message.
public string Content { get; }
Property Value
CreatedAt
Object created at UTC date.
public DateTimeOffset CreatedAt { get; }
Property Value
EditedAt
The ISO 8601 timestamp of when the message was last edited.
public DateTimeOffset? EditedAt { get; }
Property Value
Embeds
public IEnumerable<Embed>? Embeds { get; }
Property Value
Flags
Message flags bitfield.
public MessageFlag Flags { get; }
Property Value
Id
Unique identifier (snowflake) for the object.
public ulong Id { get; }
Property Value
IsPinned
Whether the message is pinned.
public bool IsPinned { get; }
Property Value
IsTTS
Whether the message was sent as text-to-speech.
public bool IsTTS { get; }
Property Value
MentionEveryone
Whether the message mentions @everyone.
public bool MentionEveryone { get; }
Property Value
MentionRoles
The role IDs mentioned in the message.
public ulong[]? MentionRoles { get; }
Property Value
- ulong[]
Mentions
public IEnumerable<User>? Mentions { get; }
Property Value
MessageReference
public MessageReference? MessageReference { get; }
Property Value
MessageSnapshots
public MessageSnapshot[]? MessageSnapshots { get; }
Property Value
Nonce
A client-provided value for message deduplication.
public string? Nonce { get; }
Property Value
Reactions
public MessageReaction[]? Reactions { get; }
Property Value
Stickers
public Sticker[]? Stickers { get; }
Property Value
- Sticker[]
Type
The type of message.
public MessageType Type { get; }
Property Value
WebhookId
The ID of the webhook that sent this message.
public ulong? WebhookId { get; }
Property Value
Methods
Create(FluxerBaseClient, MessageJson)
Create a Message object from json.
public static Message Create(FluxerBaseClient client, MessageJson json)
Parameters
clientFluxerBaseClientjsonMessageJson