Search Results for

    Show / Hide Table of Contents

    Interface IInteractionContext

    Represents the context of an Interaction.

    Namespace: Discord
    Assembly: Discord.Net.Core.dll
    Syntax
    public interface IInteractionContext

    Properties

    | Improve this Doc View Source

    Channel

    Gets the channel the interaction originated from.

    Declaration
    IMessageChannel Channel { get; }
    Property Value
    Type Description
    IMessageChannel
    | Improve this Doc View Source

    Client

    Gets the client that will be used to handle this interaction.

    Declaration
    IDiscordClient Client { get; }
    Property Value
    Type Description
    IDiscordClient
    | Improve this Doc View Source

    Guild

    Gets the guild the interaction originated from.

    Declaration
    IGuild Guild { get; }
    Property Value
    Type Description
    IGuild
    Remarks

    Will be null if the interaction originated from a DM channel or the interaction was a Context Command interaction.

    | Improve this Doc View Source

    Interaction

    Gets the underlying interaction.

    Declaration
    IDiscordInteraction Interaction { get; }
    Property Value
    Type Description
    IDiscordInteraction
    | Improve this Doc View Source

    User

    Gets the user who invoked the interaction event.

    Declaration
    IUser User { get; }
    Property Value
    Type Description
    IUser

    Theme

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