Class ChannelMenuInteractionContext
- Namespace
- NetCord.Services.ComponentInteractions
- Assembly
- NetCord.Services.dll
Context for handling channel menu interactions.
public class ChannelMenuInteractionContext : BaseChannelMenuInteractionContext, IComponentInteractionContext, IInteractionContext, IGatewayClientContext, IRestMessageContext, IUserContext, IGuildContext, IChannelContext, IContext
- Inheritance
-
ChannelMenuInteractionContext
- Implements
- Inherited Members
Constructors
ChannelMenuInteractionContext(ChannelMenuInteraction, GatewayClient)
Context for handling channel menu interactions.
public ChannelMenuInteractionContext(ChannelMenuInteraction interaction, GatewayClient client)
Parameters
interactionChannelMenuInteractionThe interaction that is being handled. clientGatewayClientThe GatewayClient associated with the handled command or interaction.
Properties
Channel
Channel in which the handled command or interaction was invoked.
public TextChannel Channel { get; }
Property Value
Client
The GatewayClient associated with the handled command or interaction.
public GatewayClient Client { get; }
Property Value
Guild
Guild in which the handled command or interaction was invoked.
public Guild? Guild { get; }
Property Value
Remarks
May be null if the handled command or interaction was invoked outside of a guild or if the guild has not been cached.
Message
The message associated with the handled command or interaction.
public RestMessage Message { get; }
Property Value
SelectedValues
The selected channels from the menu.
public IReadOnlyList<Channel> SelectedValues { get; }
Property Value
User
User who invoked the handled command or interaction.
public User User { get; }