Interface IApplicationCommandInfo
Represents a InteractionService command that can be registered to Discord.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public interface IApplicationCommandInfo
Properties
| Improve this Doc View SourceCommandType
Gets the type of this command.
Declaration
ApplicationCommandType CommandType { get; }
Property Value
Type | Description |
---|---|
ApplicationCommandType |
DefaultMemberPermissions
Gets the default permissions needed for executing this command.
Declaration
GuildPermission? DefaultMemberPermissions { get; }
Property Value
Type | Description |
---|---|
Nullable<GuildPermission> |
DefaultPermission
Gets the DefaultPermission of this command.
Declaration
bool DefaultPermission { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsEnabledInDm
Gets whether this command can be used in DMs.
Declaration
bool IsEnabledInDm { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsNsfw
Gets whether this command can is age restricted.
Declaration
bool IsNsfw { get; }
Property Value
Type | Description |
---|---|
Boolean |
Name
Gets the name of this command.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
String |