Table of Contents

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

Optional<HashSet<InteractionContextType>>

DefaultMemberPermissions

Gets or sets the default permissions required by a user to execute this application command.

public Optional<GuildPermission> DefaultMemberPermissions { get; set; }

Property Value

Optional<GuildPermission>

DescriptionLocalizations

Gets or sets the localization dictionary for the description field of this command.

public IReadOnlyDictionary<string, string> DescriptionLocalizations { get; set; }

Property Value

IReadOnlyDictionary<string, string>

IntegrationTypes

Gets or sets the install method for this command.

public Optional<HashSet<ApplicationIntegrationType>> IntegrationTypes { get; set; }

Property Value

Optional<HashSet<ApplicationIntegrationType>>

IsDMEnabled

Gets or sets whether or not this command can be used in DMs.

public Optional<bool> IsDMEnabled { get; set; }

Property Value

Optional<bool>

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

Optional<bool>

IsNsfw

Gets or sets whether or not this command is age restricted.

public Optional<bool> IsNsfw { get; set; }

Property Value

Optional<bool>

Name

Gets or sets the name of this command.

public Optional<string> Name { get; set; }

Property Value

Optional<string>

NameLocalizations

Gets or sets the localization dictionary for the name field of this command.

public IReadOnlyDictionary<string, string> NameLocalizations { get; set; }

Property Value

IReadOnlyDictionary<string, string>