Table of Contents

Class AutocompleteContext

Namespace
DisCatSharp.ApplicationCommands.Context
Assembly
DisCatSharp.ApplicationCommands.dll

Represents a context for an autocomplete interaction.

public sealed class AutocompleteContext
Inheritance
AutocompleteContext
Inherited Members

Properties

AppPermissions

Gets the applications permissions.

ApplicationCommandsExtension

Gets the slash command module this interaction was created in.

Channel

Gets the channel this interaction was executed in.

Client

Gets the client for this interaction.

EntitlementSkuIds

Gets the entitlement sku ids.

This is related to premium subscriptions for bots.

warning

Can only be used if you have an associated application subscription sku.

Entitlements

Gets the entitlements.

This is related to premium subscriptions for bots.

warning

Can only be used if you have an associated application subscription sku.

FocusedOption

The option to autocomplete.

Guild

Gets the guild this interaction was executed in.

GuildLocale

Gets the guild locale if applicable.

Interaction

The interaction created.

Locale

Gets the invoking user locale.

Member

Gets the member which executed this interaction, or null if the command is in a DM.

Options

The options already provided.

Services

Gets the service provider.

This allows passing data around without resorting to static members.

Defaults to an empty service provider.

User

Gets the user which executed this interaction.