Table of Contents

Interface IApplicationCommandInfo

Namespace
Discord.Interactions
Assembly
Discord.Net.Interactions.dll

Represents a InteractionService command that can be registered to Discord.

public interface IApplicationCommandInfo

Properties

CommandType

Gets the type of this command.

ApplicationCommandType CommandType { get; }

Property Value

ApplicationCommandType

ContextTypes

Gets the context types this command can be executed in.

IReadOnlyCollection<InteractionContextType> ContextTypes { get; }

Property Value

IReadOnlyCollection<InteractionContextType>

DefaultMemberPermissions

Gets the default permissions needed for executing this command.

GuildPermission? DefaultMemberPermissions { get; }

Property Value

GuildPermission?

DefaultPermission

Gets the DefaultPermission of this command.

[Obsolete("To be deprecated soon, use IsEnabledInDm and DefaultMemberPermissions instead.")]
bool DefaultPermission { get; }

Property Value

bool

IntegrationTypes

Gets the install methods for this command.

IReadOnlyCollection<ApplicationIntegrationType> IntegrationTypes { get; }

Property Value

IReadOnlyCollection<ApplicationIntegrationType>

IsEnabledInDm

Gets whether this command can be used in DMs.

bool IsEnabledInDm { get; }

Property Value

bool

IsNsfw

Gets whether this command can is age restricted.

bool IsNsfw { get; }

Property Value

bool

Name

Gets the name of this command.

string Name { get; }

Property Value

string