Interface IDiscordApplicationCommand
Represents a discord Application Command Structure API model. Docs: https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-structure
Namespace: Color_Chan.Discord.Core.Common.Models.Application
Assembly: Color-Chan.Discord.Core.dll
Syntax
public interface IDiscordApplicationCommand
Properties
| Improve this Doc View SourceApplicationId
Unique id of the parent application.
Declaration
ulong ApplicationId { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
DefaultPermission
Whether the command is enabled by default when the app is added to a guild.
Declaration
bool? DefaultPermission { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Description
1-100 character description.
Declaration
string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
GuildId
Guild id of the command, if not global.
Declaration
ulong? GuildId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Id
Unique id of the command.
Declaration
ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
Name
1-32 lowercase character name matching ^[\w-]{1,32}$.
Declaration
string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Options
the parameters for the command.
Declaration
IEnumerable<IDiscordApplicationCommandOption> Options { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordApplicationCommandOption> |