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
Client
Gets the client that will be used to handle this interaction.
IDiscordClient Client { get; }
Property Value
Guild
Gets the guild the interaction originated from.
IGuild Guild { get; }
Property Value
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
User
Gets the user who invoked the interaction event.
IUser User { get; }