Class RestUserMessage
Represents a REST-based message sent by a user.
Inheritance
System.Object
RestUserMessage
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Discord.Net.Rest.dll
Syntax
public class RestUserMessage : RestMessage, IUpdateable, IUserMessage, IMessage, ISnowflakeEntity, IEntity<ulong>, IDeletable
Properties
|
Improve this Doc
View Source
Attachments
Declaration
public override IReadOnlyCollection<Attachment> Attachments { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IReadOnlyCollection<Attachment> |
|
Overrides
|
Improve this Doc
View Source
EditedTimestamp
Declaration
public override DateTimeOffset? EditedTimestamp { get; }
Property Value
| Type |
Description |
| System.Nullable<System.DateTimeOffset> |
|
Overrides
|
Improve this Doc
View Source
Embeds
Declaration
public override IReadOnlyCollection<Embed> Embeds { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IReadOnlyCollection<Embed> |
|
Overrides
|
Improve this Doc
View Source
IsPinned
Declaration
public override bool IsPinned { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
IsSuppressed
Declaration
public override bool IsSuppressed { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
IsTTS
Declaration
public override bool IsTTS { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
MentionedChannelIds
Declaration
public override IReadOnlyCollection<ulong> MentionedChannelIds { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IReadOnlyCollection<System.UInt64> |
|
Overrides
|
Improve this Doc
View Source
MentionedRoleIds
Declaration
public override IReadOnlyCollection<ulong> MentionedRoleIds { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IReadOnlyCollection<System.UInt64> |
|
Overrides
|
Improve this Doc
View Source
MentionedUsers
Declaration
public override IReadOnlyCollection<RestUser> MentionedUsers { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IReadOnlyCollection<RestUser> |
|
Overrides
|
Improve this Doc
View Source
Declaration
public override IReadOnlyCollection<ITag> Tags { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IReadOnlyCollection<ITag> |
|
Overrides
Methods
|
Improve this Doc
View Source
ModifyAsync(Action<MessageProperties>, RequestOptions)
Declaration
public Task ModifyAsync(Action<MessageProperties> func, RequestOptions options = null)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
ModifySuppressionAsync(Boolean, RequestOptions)
Declaration
public Task ModifySuppressionAsync(bool suppressEmbeds, RequestOptions options = null)
Parameters
| Type |
Name |
Description |
| System.Boolean |
suppressEmbeds |
|
| RequestOptions |
options |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
PinAsync(RequestOptions)
Declaration
public Task PinAsync(RequestOptions options = null)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Resolve(TagHandling, TagHandling, TagHandling, TagHandling, TagHandling)
Declaration
public string Resolve(TagHandling userHandling = TagHandling.Name, TagHandling channelHandling = TagHandling.Name, TagHandling roleHandling = TagHandling.Name, TagHandling everyoneHandling = TagHandling.Ignore, TagHandling emojiHandling = TagHandling.Name)
Parameters
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
Resolve(Int32, TagHandling, TagHandling, TagHandling, TagHandling, TagHandling)
Declaration
public string Resolve(int startIndex, TagHandling userHandling = TagHandling.Name, TagHandling channelHandling = TagHandling.Name, TagHandling roleHandling = TagHandling.Name, TagHandling everyoneHandling = TagHandling.Ignore, TagHandling emojiHandling = TagHandling.Name)
Parameters
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
UnpinAsync(RequestOptions)
Declaration
public Task UnpinAsync(RequestOptions options = null)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Implements