Class ApplicationCommandProperties
- Namespace
- Discord
- Assembly
- Discord.Net.Core.dll
Represents the base class to create/modify application commands.
public abstract class ApplicationCommandProperties
- Inheritance
-
ApplicationCommandProperties
- Derived
- Inherited Members
Properties
ContextTypes
Gets or sets context types this command can be executed in.
public Optional<HashSet<InteractionContextType>> ContextTypes { get; set; }
Property Value
DefaultMemberPermissions
Gets or sets the default permissions required by a user to execute this application command.
public Optional<GuildPermission> DefaultMemberPermissions { get; set; }
Property Value
DescriptionLocalizations
Gets or sets the localization dictionary for the description field of this command.
public IReadOnlyDictionary<string, string> DescriptionLocalizations { get; set; }
Property Value
IntegrationTypes
Gets or sets the install method for this command.
public Optional<HashSet<ApplicationIntegrationType>> IntegrationTypes { get; set; }
Property Value
IsDMEnabled
Gets or sets whether or not this command can be used in DMs.
public Optional<bool> IsDMEnabled { get; set; }
Property Value
IsDefaultPermission
Gets or sets whether the command is enabled by default when the app is added to a guild. Default is true
public Optional<bool> IsDefaultPermission { get; set; }
Property Value
IsNsfw
Gets or sets whether or not this command is age restricted.
public Optional<bool> IsNsfw { get; set; }
Property Value
Name
Gets or sets the name of this command.
public Optional<string> Name { get; set; }
Property Value
NameLocalizations
Gets or sets the localization dictionary for the name field of this command.
public IReadOnlyDictionary<string, string> NameLocalizations { get; set; }