Class RestUserMessage
Represents a REST-based message sent by a user.
Inheritance
RestUserMessage
Assembly: Discord.Net.Rest.dll
Syntax
public class RestUserMessage : RestMessage, IEntity<ulong>, IUpdateable, IUserMessage, IMessage, ISnowflakeEntity, IEntity<ulong>, IDeletable
Properties
|
Improve this Doc
View Source
Attachments
Gets a collection of the Attachment's on the message.
Declaration
public override IReadOnlyCollection<Attachment> Attachments { get; }
Property Value
Overrides
|
Improve this Doc
View Source
EditedTimestamp
Declaration
public override DateTimeOffset? EditedTimestamp { get; }
Property Value
Type |
Description |
Nullable<DateTimeOffset> |
|
Overrides
|
Improve this Doc
View Source
Embeds
Gets a collection of the Embed's on the message.
Declaration
public override IReadOnlyCollection<Embed> Embeds { get; }
Property Value
Type |
Description |
IReadOnlyCollection<Embed> |
|
Overrides
|
Improve this Doc
View Source
IsPinned
Declaration
public override bool IsPinned { get; }
Property Value
Overrides
|
Improve this Doc
View Source
IsSuppressed
Declaration
public override bool IsSuppressed { get; }
Property Value
Overrides
|
Improve this Doc
View Source
IsTTS
Declaration
public override bool IsTTS { get; }
Property Value
Overrides
|
Improve this Doc
View Source
MentionedChannelIds
Declaration
public override IReadOnlyCollection<ulong> MentionedChannelIds { get; }
Property Value
Type |
Description |
IReadOnlyCollection<UInt64> |
|
Overrides
|
Improve this Doc
View Source
MentionedEveryone
Declaration
public override bool MentionedEveryone { get; }
Property Value
Overrides
|
Improve this Doc
View Source
MentionedRoleIds
Declaration
public override IReadOnlyCollection<ulong> MentionedRoleIds { get; }
Property Value
Type |
Description |
IReadOnlyCollection<UInt64> |
|
Overrides
|
Improve this Doc
View Source
ReferencedMessage
Gets the referenced message if it is a crosspost, channel follow add, pin, or reply message.
Declaration
public IUserMessage ReferencedMessage { get; }
Property Value
Type |
Description |
IUserMessage |
The referenced message, if any is associated and still exists.
|
|
Improve this Doc
View Source
Stickers
Declaration
public override IReadOnlyCollection<StickerItem> Stickers { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Declaration
public override IReadOnlyCollection<ITag> Tags { get; }
Property Value
Type |
Description |
IReadOnlyCollection<ITag> |
|
Overrides
Methods
|
Improve this Doc
View Source
CrosspostAsync(RequestOptions)
Declaration
public async Task CrosspostAsync(RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
ModifyAsync(Action<MessageProperties>, RequestOptions)
Declaration
public async Task ModifyAsync(Action<MessageProperties> func, RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
PinAsync(RequestOptions)
Declaration
public Task PinAsync(RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
Resolve(TagHandling, TagHandling, TagHandling, TagHandling, TagHandling)
Declaration
public string Resolve(TagHandling userHandling = default(TagHandling), TagHandling channelHandling = default(TagHandling), TagHandling roleHandling = default(TagHandling), TagHandling everyoneHandling = default(TagHandling), TagHandling emojiHandling = default(TagHandling))
Parameters
Returns
|
Improve this Doc
View Source
Resolve(Int32, TagHandling, TagHandling, TagHandling, TagHandling, TagHandling)
Declaration
public string Resolve(int startIndex, TagHandling userHandling = default(TagHandling), TagHandling channelHandling = default(TagHandling), TagHandling roleHandling = default(TagHandling), TagHandling everyoneHandling = default(TagHandling), TagHandling emojiHandling = default(TagHandling))
Parameters
Returns
|
Improve this Doc
View Source
UnpinAsync(RequestOptions)
Declaration
public Task UnpinAsync(RequestOptions options = null)
Parameters
Returns
Implements