Interface IMessage
Inherited Members
Namespace: Discord
Assembly: cs.temp.dll.dll
Syntax
public interface IMessage : ISnowflakeEntity, IEntity<ulong>, IDeletable
Properties
Attachments
Returns all attachments included in this message.
Declaration
IReadOnlyCollection<IAttachment> Attachments { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<IAttachment> |
Author
Gets the author of this message.
Declaration
IUser Author { get; }
Property Value
Type | Description |
---|---|
IUser |
Channel
Gets the channel this message was sent to.
Declaration
IMessageChannel Channel { get; }
Property Value
Type | Description |
---|---|
IMessageChannel |
Content
Returns the content for this message.
Declaration
string Content { get; }
Property Value
Type | Description |
---|---|
System.String |
EditedTimestamp
Gets the time of this message's last edit, if any.
Declaration
DateTimeOffset? EditedTimestamp { get; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTimeOffset> |
Embeds
Returns all embeds included in this message.
Declaration
IReadOnlyCollection<IEmbed> Embeds { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<IEmbed> |
IsPinned
Returns true if this message was added to its channel's pinned messages.
Declaration
bool IsPinned { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsTTS
Returns true if this message was sent as a text-to-speech message.
Declaration
bool IsTTS { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
MentionedChannelIds
Returns the ids of channels mentioned in this message.
Declaration
IReadOnlyCollection<ulong> MentionedChannelIds { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<System.UInt64> |
MentionedRoleIds
Returns the ids of roles mentioned in this message.
Declaration
IReadOnlyCollection<ulong> MentionedRoleIds { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<System.UInt64> |
MentionedUserIds
Returns the ids of users mentioned in this message.
Declaration
IReadOnlyCollection<ulong> MentionedUserIds { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<System.UInt64> |
Source
Gets the source of this message.
Declaration
MessageSource Source { get; }
Property Value
Type | Description |
---|---|
MessageSource |
Tags
Returns all tags included in this message's content.
Declaration
IReadOnlyCollection<ITag> Tags { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<ITag> |
Timestamp
Gets the time this message was sent.
Declaration
DateTimeOffset Timestamp { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset |
Type
Gets the type of this system message.
Declaration
MessageType Type { get; }
Property Value
Type | Description |
---|---|
MessageType |