Table of Contents

Class UserMenuInteractionContext

Namespace
NetCord.Services.ComponentInteractions
Assembly
NetCord.Services.dll

Context for handling user menu interactions.

public class UserMenuInteractionContext : BaseUserMenuInteractionContext, IComponentInteractionContext, IInteractionContext, IGatewayClientContext, IRestMessageContext, IUserContext, IGuildContext, IChannelContext, IContext
Inheritance
UserMenuInteractionContext
Implements
Inherited Members

Constructors

UserMenuInteractionContext(UserMenuInteraction, GatewayClient)

Context for handling user menu interactions.

public UserMenuInteractionContext(UserMenuInteraction interaction, GatewayClient client)

Parameters

interaction UserMenuInteraction
The interaction that is being handled.
client GatewayClient
The 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

TextChannel

Client

The GatewayClient associated with the handled command or interaction.

public GatewayClient Client { get; }

Property Value

GatewayClient

Guild

Guild in which the handled command or interaction was invoked.

public Guild? Guild { get; }

Property Value

Guild

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

RestMessage

SelectedValues

The selected users from the menu.

public IReadOnlyList<User> SelectedValues { get; }

Property Value

IReadOnlyList<User>

User

User who invoked the handled command or interaction.

public User User { get; }

Property Value

User