Search Results for

    Show / Hide Table of Contents

    Class RestInteractionContext

    Represents a Rest based context of an IDiscordInteraction.

    Inheritance
    Object
    RestInteractionContext<RestInteraction>
    RestInteractionContext
    Implements
    IRestInteractionContext
    IInteractionContext
    IRouteMatchContainer
    Inherited Members
    RestInteractionContext<RestInteraction>.Client
    RestInteractionContext<RestInteraction>.Guild
    RestInteractionContext<RestInteraction>.Channel
    RestInteractionContext<RestInteraction>.User
    RestInteractionContext<RestInteraction>.Interaction
    RestInteractionContext<RestInteraction>.InteractionResponseCallback
    RestInteractionContext<RestInteraction>.SegmentMatches
    RestInteractionContext<RestInteraction>.SetSegmentMatches(IEnumerable<IRouteSegmentMatch>)
    RestInteractionContext<RestInteraction>.IInteractionContext.Client
    RestInteractionContext<RestInteraction>.IInteractionContext.Guild
    RestInteractionContext<RestInteraction>.IInteractionContext.Channel
    RestInteractionContext<RestInteraction>.IInteractionContext.User
    RestInteractionContext<RestInteraction>.IInteractionContext.Interaction
    Namespace: Discord.Rest
    Assembly: Discord.Net.Rest.dll
    Syntax
    public class RestInteractionContext : RestInteractionContext<RestInteraction>, IRestInteractionContext, IInteractionContext, IRouteMatchContainer

    Constructors

    | Improve this Doc View Source

    RestInteractionContext(DiscordRestClient, RestInteraction)

    Initializes a new RestInteractionContext.

    Declaration
    public RestInteractionContext(DiscordRestClient client, RestInteraction interaction)
    Parameters
    Type Name Description
    DiscordRestClient client

    The underlying client.

    RestInteraction interaction

    The underlying interaction.

    | Improve this Doc View Source

    RestInteractionContext(DiscordRestClient, RestInteraction, Func<String, Task>)

    Initializes a new RestInteractionContext.

    Declaration
    public RestInteractionContext(DiscordRestClient client, RestInteraction interaction, Func<string, Task> interactionResponseCallback)
    Parameters
    Type Name Description
    DiscordRestClient client

    The underlying client.

    RestInteraction interaction

    The underlying interaction.

    Func<String, Task> interactionResponseCallback

    The callback for outgoing json.

    Implements

    IRestInteractionContext
    IInteractionContext
    IRouteMatchContainer

    Theme

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