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

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

Property Value

InteractionContextType[]

DMPermission

[Obsolete("Replaced by 'Contexts'.")]
public bool DMPermission { get; init; }

Property Value

bool

DefaultGuildUserPermissions

public Permissions DefaultGuildUserPermissions { get; init; }

Property Value

Permissions

DefaultPermission

[Obsolete("Replaced by 'DefaultGuildUserPermissions'.")]
public bool DefaultPermission { get; init; }

Property Value

bool

GuildId

public ulong GuildId { get; init; }

Property Value

ulong

IntegrationTypes

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

Property Value

ApplicationIntegrationType[]

Name

public string Name { get; }

Property Value

string

Nsfw

public bool Nsfw { get; init; }

Property Value

bool