Interface IInteractionContext
Represents the context of an Interaction.
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public interface IInteractionContext
Properties
| Improve this Doc View SourceChannel
Gets the channel the interaction originated from.
Declaration
IMessageChannel Channel { get; }
Property Value
Type | Description |
---|---|
IMessageChannel |
Client
Gets the client that will be used to handle this interaction.
Declaration
IDiscordClient Client { get; }
Property Value
Type | Description |
---|---|
IDiscordClient |
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.
Interaction
Gets the underlying interaction.
Declaration
IDiscordInteraction Interaction { get; }
Property Value
Type | Description |
---|---|
IDiscordInteraction |
User
Gets the user who invoked the interaction event.
Declaration
IUser User { get; }
Property Value
Type | Description |
---|---|
IUser |