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
ContextTypes
Gets the context types this command can be executed in.
IReadOnlyCollection<InteractionContextType> ContextTypes { get; }
Property Value
DefaultMemberPermissions
Gets the default permissions needed for executing this command.
GuildPermission? DefaultMemberPermissions { get; }
Property Value
DefaultPermission
Gets the DefaultPermission of this command.
[Obsolete("To be deprecated soon, use IsEnabledInDm and DefaultMemberPermissions instead.")]
bool DefaultPermission { get; }
Property Value
IntegrationTypes
Gets the install methods for this command.
IReadOnlyCollection<ApplicationIntegrationType> IntegrationTypes { get; }
Property Value
IsEnabledInDm
Gets whether this command can be used in DMs.
bool IsEnabledInDm { get; }
Property Value
IsNsfw
Gets whether this command can is age restricted.
bool IsNsfw { get; }
Property Value
Name
Gets the name of this command.
string Name { get; }