Search Results for

    Show / Hide Table of Contents

    Class RestFollowupMessage

    Represents a REST-based follow up message sent by a bot responding to an interaction.

    Inheritance
    Object
    RestEntity<UInt64>
    RestMessage
    RestUserMessage
    RestFollowupMessage
    Implements
    IEntity<UInt64>
    IUpdateable
    IUserMessage
    IMessage
    ISnowflakeEntity
    IEntity<UInt64>
    IDeletable
    Inherited Members
    RestUserMessage.IsTTS
    RestUserMessage.IsPinned
    RestUserMessage.IsSuppressed
    RestUserMessage.EditedTimestamp
    RestUserMessage.MentionedEveryone
    RestUserMessage.Attachments
    RestUserMessage.Embeds
    RestUserMessage.MentionedChannelIds
    RestUserMessage.MentionedRoleIds
    RestUserMessage.Tags
    RestUserMessage.Stickers
    RestUserMessage.ReferencedMessage
    RestUserMessage.PinAsync(RequestOptions)
    RestUserMessage.UnpinAsync(RequestOptions)
    RestUserMessage.Resolve(Int32, TagHandling, TagHandling, TagHandling, TagHandling, TagHandling)
    RestUserMessage.Resolve(TagHandling, TagHandling, TagHandling, TagHandling, TagHandling)
    RestUserMessage.CrosspostAsync(RequestOptions)
    RestMessage.Channel
    RestMessage.Author
    RestMessage.Source
    RestMessage.Content
    RestMessage.CleanContent
    RestMessage.CreatedAt
    RestMessage.Thread
    RestMessage.IMessage.Thread
    RestMessage.Timestamp
    RestMessage.Activity
    RestMessage.Application
    RestMessage.Reference
    RestMessage.Interaction
    RestMessage.Flags
    RestMessage.Type
    RestMessage.RoleSubscriptionData
    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 RestFollowupMessage : RestUserMessage, IEntity<ulong>, IUpdateable, IUserMessage, IMessage, ISnowflakeEntity, IEntity<ulong>, IDeletable

    Methods

    | Improve this Doc View Source

    DeleteAsync()

    Deletes this object and all of it's children.

    Declaration
    public Task DeleteAsync()
    Returns
    Type Description
    Task

    A task that represents the asynchronous delete operation.

    | Improve this Doc View Source

    ModifyAsync(Action<MessageProperties>, RequestOptions)

    Modifies this interaction followup message.

    Declaration
    public async Task ModifyAsync(Action<MessageProperties> func, RequestOptions options = null)
    Parameters
    Type Name Description
    Action<MessageProperties> func

    A delegate containing the properties to modify the message with.

    RequestOptions options

    The options to be used when sending the request.

    Returns
    Type Description
    Task

    A task that represents the asynchronous modification operation.

    Remarks

    This method modifies this message with the specified properties. To see an example of this method and what properties are available, please refer to MessageProperties.

    Examples

    The following example replaces the content of the message with Hello World!.

    await msg.ModifyAsync(x => x.Content = "Hello World!");
    Exceptions
    Type Condition
    HttpException

    Something went wrong during the request.

    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-2023 3.12.0