Table of Contents

Class ApplicationCommandAttribute

Namespace
NetCord.Services.ApplicationCommands
Assembly
NetCord.Services.dll
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public abstract class ApplicationCommandAttribute : Attribute
Inheritance
ApplicationCommandAttribute
Derived
Inherited Members

Properties

Contexts

Interaction context(s) where the command can be used.

public InteractionContextType[]? Contexts { get; init; }

Property Value

InteractionContextType[]

DefaultGuildPermissions

Default required permissions to use the command.

public Permissions DefaultGuildPermissions { get; init; }

Property Value

Permissions

IntegrationTypes

Installation context(s) where the command is available.

public ApplicationIntegrationType[]? IntegrationTypes { get; init; }

Property Value

ApplicationIntegrationType[]

Name

Name of the command (1-32 characters).

public string Name { get; }

Property Value

string

Nsfw

Indicates whether the command is age-restricted.

public bool Nsfw { get; init; }

Property Value

bool

Register

Whether the application command should be registered by the service.

public bool Register { get; init; }

Property Value

bool