Table of Contents

Class CommandAttribute

Namespace
Uncreated.Warfare.Interaction.Commands
Assembly
Uncreated.Warfare.dll

Metadata for a ICommand.

[AttributeUsage(AttributeTargets.Class, Inherited = false)]
[BaseTypeRequired(typeof(ICommand))]
public sealed class CommandAttribute : Attribute
Inheritance
CommandAttribute
Inherited Members

Constructors

CommandAttribute(string, params string[])

public CommandAttribute(string commandName, params string[] aliases)

Parameters

commandName string
aliases string[]

Properties

Aliases

public string[] Aliases { get; }

Property Value

string[]

CommandName

public string CommandName { get; }

Property Value

string

PermissionOverride

public string? PermissionOverride { get; set; }

Property Value

string