Search Results for

    Show / Hide Table of Contents

    Class RestAutocompleteInteraction

    Represents a REST-based autocomplete interaction.

    Inheritance
    Object
    RestEntity<UInt64>
    RestInteraction
    RestAutocompleteInteraction
    Implements
    IEntity<UInt64>
    IAutocompleteInteraction
    IDiscordInteraction
    ISnowflakeEntity
    IEntity<UInt64>
    Inherited Members
    RestInteraction.Type
    RestInteraction.Token
    RestInteraction.Version
    RestInteraction.User
    RestInteraction.UserLocale
    RestInteraction.GuildLocale
    RestInteraction.CreatedAt
    RestInteraction.IsValidToken
    RestInteraction.Channel
    RestInteraction.ChannelId
    RestInteraction.Guild
    RestInteraction.GuildId
    RestInteraction.HasResponded
    RestInteraction.IsDMInteraction
    RestInteraction.ApplicationId
    RestInteraction.GetChannelAsync(RequestOptions)
    RestInteraction.GetGuildAsync(RequestOptions)
    RestInteraction.GetOriginalResponseAsync(RequestOptions)
    RestInteraction.ModifyOriginalResponseAsync(Action<MessageProperties>, RequestOptions)
    RestInteraction.DeleteOriginalResponseAsync(RequestOptions)
    RestInteraction.IDiscordInteraction.User
    RestEntity<UInt64>.Id
    Namespace: Discord.Rest
    Assembly: Discord.Net.Rest.dll
    Syntax
    public class RestAutocompleteInteraction : RestInteraction, IEntity<ulong>, IAutocompleteInteraction, IDiscordInteraction, ISnowflakeEntity, IEntity<ulong>

    Properties

    | Improve this Doc View Source

    Data

    Gets the autocomplete data of this interaction.

    Declaration
    public RestAutocompleteInteractionData Data { get; }
    Property Value
    Type Description
    RestAutocompleteInteractionData

    Methods

    | Improve this Doc View Source

    Defer(Boolean, RequestOptions)

    Declaration
    public override string Defer(bool ephemeral = false, RequestOptions options = null)
    Parameters
    Type Name Description
    Boolean ephemeral
    RequestOptions options
    Returns
    Type Description
    String
    Overrides
    RestInteraction.Defer(Boolean, RequestOptions)
    | Improve this Doc View Source

    FollowupAsync(String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)

    Declaration
    public override Task<RestFollowupMessage> FollowupAsync(string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, MessageComponent components = null, Embed embed = null, RequestOptions options = null)
    Parameters
    Type Name Description
    String text
    Embed[] embeds
    Boolean isTTS
    Boolean ephemeral
    AllowedMentions allowedMentions
    MessageComponent components
    Embed embed
    RequestOptions options
    Returns
    Type Description
    Task<RestFollowupMessage>
    Overrides
    RestInteraction.FollowupAsync(String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    | Improve this Doc View Source

    FollowupWithFileAsync(FileAttachment, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)

    Declaration
    public override Task<RestFollowupMessage> FollowupWithFileAsync(FileAttachment attachment, string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, MessageComponent components = null, Embed embed = null, RequestOptions options = null)
    Parameters
    Type Name Description
    FileAttachment attachment
    String text
    Embed[] embeds
    Boolean isTTS
    Boolean ephemeral
    AllowedMentions allowedMentions
    MessageComponent components
    Embed embed
    RequestOptions options
    Returns
    Type Description
    Task<RestFollowupMessage>
    Overrides
    RestInteraction.FollowupWithFileAsync(FileAttachment, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    | Improve this Doc View Source

    FollowupWithFileAsync(Stream, String, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)

    Declaration
    public override Task<RestFollowupMessage> FollowupWithFileAsync(Stream fileStream, string fileName, string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, MessageComponent components = null, Embed embed = null, RequestOptions options = null)
    Parameters
    Type Name Description
    Stream fileStream
    String fileName
    String text
    Embed[] embeds
    Boolean isTTS
    Boolean ephemeral
    AllowedMentions allowedMentions
    MessageComponent components
    Embed embed
    RequestOptions options
    Returns
    Type Description
    Task<RestFollowupMessage>
    Overrides
    RestInteraction.FollowupWithFileAsync(Stream, String, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    | Improve this Doc View Source

    FollowupWithFileAsync(String, String, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)

    Declaration
    public override Task<RestFollowupMessage> FollowupWithFileAsync(string filePath, string fileName = null, string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, MessageComponent components = null, Embed embed = null, RequestOptions options = null)
    Parameters
    Type Name Description
    String filePath
    String fileName
    String text
    Embed[] embeds
    Boolean isTTS
    Boolean ephemeral
    AllowedMentions allowedMentions
    MessageComponent components
    Embed embed
    RequestOptions options
    Returns
    Type Description
    Task<RestFollowupMessage>
    Overrides
    RestInteraction.FollowupWithFileAsync(String, String, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    | Improve this Doc View Source

    FollowupWithFilesAsync(IEnumerable<FileAttachment>, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)

    Declaration
    public override Task<RestFollowupMessage> FollowupWithFilesAsync(IEnumerable<FileAttachment> attachments, string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, MessageComponent components = null, Embed embed = null, RequestOptions options = null)
    Parameters
    Type Name Description
    IEnumerable<FileAttachment> attachments
    String text
    Embed[] embeds
    Boolean isTTS
    Boolean ephemeral
    AllowedMentions allowedMentions
    MessageComponent components
    Embed embed
    RequestOptions options
    Returns
    Type Description
    Task<RestFollowupMessage>
    Overrides
    RestInteraction.FollowupWithFilesAsync(IEnumerable<FileAttachment>, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    | Improve this Doc View Source

    Respond(RequestOptions, AutocompleteResult[])

    Responds to this interaction with a set of choices.

    Declaration
    public string Respond(RequestOptions options = null, params AutocompleteResult[] result)
    Parameters
    Type Name Description
    RequestOptions options

    The request options for this response.

    AutocompleteResult[] result

    The set of choices for the user to pick from. A max of 25 choices are allowed. Passing null for this argument will show the executing user that there is no choices for their autocompleted input.

    Returns
    Type Description
    String

    A string that contains json to write back to the incoming http request.

    | Improve this Doc View Source

    Respond(IEnumerable<AutocompleteResult>, RequestOptions)

    Responds to this interaction with a set of choices.

    Declaration
    public string Respond(IEnumerable<AutocompleteResult> result, RequestOptions options = null)
    Parameters
    Type Name Description
    IEnumerable<AutocompleteResult> result

    The set of choices for the user to pick from. A max of 25 choices are allowed. Passing null for this argument will show the executing user that there is no choices for their autocompleted input.

    RequestOptions options

    The request options for this response.

    Returns
    Type Description
    String

    A string that contains json to write back to the incoming http request.

    | Improve this Doc View Source

    Respond(String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)

    Declaration
    public override string Respond(string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, MessageComponent components = null, Embed embed = null, RequestOptions options = null)
    Parameters
    Type Name Description
    String text
    Embed[] embeds
    Boolean isTTS
    Boolean ephemeral
    AllowedMentions allowedMentions
    MessageComponent components
    Embed embed
    RequestOptions options
    Returns
    Type Description
    String
    Overrides
    RestInteraction.Respond(String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    | Improve this Doc View Source

    RespondWithModal(Modal, RequestOptions)

    Declaration
    public override string RespondWithModal(Modal modal, RequestOptions options = null)
    Parameters
    Type Name Description
    Modal modal
    RequestOptions options
    Returns
    Type Description
    String
    Overrides
    RestInteraction.RespondWithModal(Modal, RequestOptions)

    Explicit Interface Implementations

    | Improve this Doc View Source

    IAutocompleteInteraction.Data

    Gets the autocomplete data of this interaction.

    Declaration
    IAutocompleteInteractionData IAutocompleteInteraction.Data { get; }
    Returns
    Type Description
    IAutocompleteInteractionData

    Implements

    IEntity<TId>
    IAutocompleteInteraction
    IDiscordInteraction
    ISnowflakeEntity
    IEntity<TId>

    Extension Methods

    RestExtensions.RespondWithModal<T>(RestInteraction, String, RequestOptions, Action<ModalBuilder>)

    Theme

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