Class ApplicationCommandProperties
Represents the base class to create/modify application commands.
Inheritance
ApplicationCommandProperties
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public abstract class ApplicationCommandProperties : object
Properties
| Improve this Doc View SourceDefaultMemberPermissions
Gets or sets the default permissions required by a user to execute this application command.
Declaration
public Optional<GuildPermission> DefaultMemberPermissions { get; set; }
Property Value
Type | Description |
---|---|
Optional<GuildPermission> |
DescriptionLocalizations
Gets or sets the localization dictionary for the description field of this command.
Declaration
public IReadOnlyDictionary<string, string> DescriptionLocalizations { get; set; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<String, String> |
IsDefaultPermission
Gets or sets whether the command is enabled by default when the app is added to a guild. Default is true
Declaration
public Optional<bool> IsDefaultPermission { get; set; }
Property Value
Type | Description |
---|---|
Optional<Boolean> |
IsDMEnabled
Gets or sets whether or not this command can be used in DMs.
Declaration
public Optional<bool> IsDMEnabled { get; set; }
Property Value
Type | Description |
---|---|
Optional<Boolean> |
IsNsfw
Gets or sets whether or not this command is age restricted.
Declaration
public Optional<bool> IsNsfw { get; set; }
Property Value
Type | Description |
---|---|
Optional<Boolean> |
Name
Gets or sets the name of this command.
Declaration
public Optional<string> Name { get; set; }
Property Value
Type | Description |
---|---|
Optional<String> |
NameLocalizations
Gets or sets the localization dictionary for the name field of this command.
Declaration
public IReadOnlyDictionary<string, string> NameLocalizations { get; set; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<String, String> |