Table of Contents

Interface IInteractionContext

Namespace
Discord
Assembly
Discord.Net.Core.dll

Represents the context of an Interaction.

public interface IInteractionContext

Properties

Channel

Gets the channel the interaction originated from.

IMessageChannel Channel { get; }

Property Value

IMessageChannel

Client

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

IDiscordClient Client { get; }

Property Value

IDiscordClient

Guild

Gets the guild the interaction originated from.

IGuild Guild { get; }

Property Value

IGuild

Remarks

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

Interaction

Gets the underlying interaction.

IDiscordInteraction Interaction { get; }

Property Value

IDiscordInteraction

User

Gets the user who invoked the interaction event.

IUser User { get; }

Property Value

IUser