Search Results for

    Show / Hide Table of Contents

    Class RestUserMessage

    Represents a REST-based message sent by a user.

    Inheritance
    Object
    RestEntity<UInt64>
    RestMessage
    RestUserMessage
    RestFollowupMessage
    RestInteractionMessage
    Implements
    IEntity<UInt64>
    IUpdateable
    IUserMessage
    IMessage
    ISnowflakeEntity
    IEntity<UInt64>
    IDeletable
    Inherited Members
    RestMessage.Channel
    RestMessage.Author
    RestMessage.Source
    RestMessage.Content
    RestMessage.CleanContent
    RestMessage.CreatedAt
    RestMessage.Timestamp
    RestMessage.Activity
    RestMessage.Application
    RestMessage.Reference
    RestMessage.Interaction
    RestMessage.Flags
    RestMessage.Type
    RestMessage.Components
    RestMessage.MentionedUsers
    RestMessage.UpdateAsync(RequestOptions)
    RestMessage.DeleteAsync(RequestOptions)
    RestMessage.ToString()
    RestMessage.IMessage.Author
    RestMessage.IMessage.Interaction
    RestMessage.Reactions
    RestMessage.AddReactionAsync(IEmote, RequestOptions)
    RestMessage.RemoveReactionAsync(IEmote, IUser, RequestOptions)
    RestMessage.RemoveReactionAsync(IEmote, UInt64, RequestOptions)
    RestMessage.RemoveAllReactionsAsync(RequestOptions)
    RestMessage.RemoveAllReactionsForEmoteAsync(IEmote, RequestOptions)
    RestMessage.GetReactionUsersAsync(IEmote, Int32, RequestOptions)
    RestEntity<UInt64>.Id
    Namespace: Discord.Rest
    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
    Type Description
    IReadOnlyCollection<Attachment>
    Overrides
    RestMessage.Attachments
    | Improve this Doc View Source

    EditedTimestamp

    Declaration
    public override DateTimeOffset? EditedTimestamp { get; }
    Property Value
    Type Description
    Nullable<DateTimeOffset>
    Overrides
    RestMessage.EditedTimestamp
    | 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
    RestMessage.Embeds
    | Improve this Doc View Source

    IsPinned

    Declaration
    public override bool IsPinned { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    RestMessage.IsPinned
    | Improve this Doc View Source

    IsSuppressed

    Declaration
    public override bool IsSuppressed { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    RestMessage.IsSuppressed
    | Improve this Doc View Source

    IsTTS

    Declaration
    public override bool IsTTS { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    RestMessage.IsTTS
    | Improve this Doc View Source

    MentionedChannelIds

    Declaration
    public override IReadOnlyCollection<ulong> MentionedChannelIds { get; }
    Property Value
    Type Description
    IReadOnlyCollection<UInt64>
    Overrides
    RestMessage.MentionedChannelIds
    | Improve this Doc View Source

    MentionedEveryone

    Declaration
    public override bool MentionedEveryone { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    RestMessage.MentionedEveryone
    | Improve this Doc View Source

    MentionedRoleIds

    Declaration
    public override IReadOnlyCollection<ulong> MentionedRoleIds { get; }
    Property Value
    Type Description
    IReadOnlyCollection<UInt64>
    Overrides
    RestMessage.MentionedRoleIds
    | 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
    Type Description
    IReadOnlyCollection<StickerItem>
    Overrides
    RestMessage.Stickers
    | Improve this Doc View Source

    Tags

    Declaration
    public override IReadOnlyCollection<ITag> Tags { get; }
    Property Value
    Type Description
    IReadOnlyCollection<ITag>
    Overrides
    RestMessage.Tags

    Methods

    | Improve this Doc View Source

    CrosspostAsync(RequestOptions)

    Declaration
    public async Task CrosspostAsync(RequestOptions options = null)
    Parameters
    Type Name Description
    RequestOptions options
    Returns
    Type Description
    Task
    | Improve this Doc View Source

    ModifyAsync(Action<MessageProperties>, RequestOptions)

    Declaration
    public async Task ModifyAsync(Action<MessageProperties> func, RequestOptions options = null)
    Parameters
    Type Name Description
    Action<MessageProperties> func
    RequestOptions options
    Returns
    Type Description
    Task
    | Improve this Doc View Source

    PinAsync(RequestOptions)

    Declaration
    public Task PinAsync(RequestOptions options = null)
    Parameters
    Type Name Description
    RequestOptions options
    Returns
    Type Description
    Task
    | 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
    Type Name Description
    TagHandling userHandling
    TagHandling channelHandling
    TagHandling roleHandling
    TagHandling everyoneHandling
    TagHandling emojiHandling
    Returns
    Type Description
    String
    | 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
    Type Name Description
    Int32 startIndex
    TagHandling userHandling
    TagHandling channelHandling
    TagHandling roleHandling
    TagHandling everyoneHandling
    TagHandling emojiHandling
    Returns
    Type Description
    String
    | Improve this Doc View Source

    UnpinAsync(RequestOptions)

    Declaration
    public Task UnpinAsync(RequestOptions options = null)
    Parameters
    Type Name Description
    RequestOptions options
    Returns
    Type Description
    Task

    Implements

    IEntity<TId>
    IUpdateable
    IUserMessage
    IMessage
    ISnowflakeEntity
    IEntity<TId>
    IDeletable

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2022 3.9.0