Search Results for

    Show / Hide Table of Contents

    Class ShardedInteractionContext<TInteraction>

    The sharded variant of SocketInteractionContext<TInteraction>.

    Inheritance
    Object
    SocketInteractionContext<TInteraction>
    ShardedInteractionContext<TInteraction>
    ShardedInteractionContext
    Implements
    IRouteMatchContainer
    IInteractionContext
    Inherited Members
    SocketInteractionContext<TInteraction>.Guild
    SocketInteractionContext<TInteraction>.Channel
    SocketInteractionContext<TInteraction>.User
    SocketInteractionContext<TInteraction>.Interaction
    SocketInteractionContext<TInteraction>.SegmentMatches
    SocketInteractionContext<TInteraction>.SetSegmentMatches(IEnumerable<IRouteSegmentMatch>)
    SocketInteractionContext<TInteraction>.IInteractionContext.Client
    SocketInteractionContext<TInteraction>.IInteractionContext.Guild
    SocketInteractionContext<TInteraction>.IInteractionContext.Channel
    SocketInteractionContext<TInteraction>.IInteractionContext.User
    SocketInteractionContext<TInteraction>.IInteractionContext.Interaction
    Namespace: Discord.Interactions
    Assembly: Discord.Net.WebSocket.dll
    Syntax
    public class ShardedInteractionContext<TInteraction> : SocketInteractionContext<TInteraction>, IRouteMatchContainer, IInteractionContext where TInteraction : SocketInteraction
    Type Parameters
    Name Description
    TInteraction

    Constructors

    | Improve this Doc View Source

    ShardedInteractionContext(DiscordShardedClient, TInteraction)

    Initializes a SocketInteractionContext<TInteraction>.

    Declaration
    public ShardedInteractionContext(DiscordShardedClient client, TInteraction interaction)
    Parameters
    Type Name Description
    DiscordShardedClient client

    The underlying client.

    TInteraction interaction

    The underlying interaction.

    Properties

    | Improve this Doc View Source

    Client

    Gets the DiscordSocketClient that the command will be executed with.

    Declaration
    public DiscordShardedClient Client { get; }
    Property Value
    Type Description
    DiscordShardedClient

    Implements

    IRouteMatchContainer
    IInteractionContext

    Theme

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