Class PriorityAttribute
Defines this command overload's priority. This determines the order in which overloads will be attempted to be called. Commands will be attempted in order of priority, in descending order.
Inheritance
System.Object
PriorityAttribute
Namespace: DSharpPlus.CommandsNext.Attributes
Assembly: cs.temp.dll.dll
Syntax
public sealed class PriorityAttribute : Attribute
Constructors
PriorityAttribute(Int32)
Defines this command overload's priority. This determines the order in which overloads will be attempted to be called. Commands will be attempted in order of priority, in descending order.
Declaration
public PriorityAttribute(int priority)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | priority | Priority of this command overload. |
Properties
Priority
Gets the priority of this command overload.
Declaration
public int Priority { get; }
Property Value
Type | Description |
---|---|
System.Int32 |