Class Command
- Namespace
- DSharpPlus.CommandsNext
- Assembly
- DSharpPlus.CommandsNext.dll
Represents a command.
public class Command
- Inheritance
-
objectCommand
- Derived
Properties
- Aliases
Gets this command's aliases.
- Category
Gets the category this command belongs to.
- CustomAttributes
Gets the custom attributes defined on this command.
- Description
Gets this command's description.
- ExecutionChecks
Gets a collection of pre-execution checks for this command.
- IsHidden
Gets whether this command is hidden.
- Module
Gets the module in which this command is defined.
- Name
Gets this command's name.
- Overloads
Gets a collection of this command's overloads.
- Parent
Gets this command's parent module, if any.
- QualifiedName
Gets this command's qualified name (i.e. one that includes all module names).
Methods
- Equals(object?)
Checks whether this command equals another object.
- ExecuteAsync(CommandContext)
Executes this command with specified context.
- GetHashCode()
Gets this command's hash code.
- RunChecksAsync(CommandContext, bool)
Runs pre-execution checks for this command and returns any that fail for given context.
- ToString()
Returns a string representation of this command.
Operators
- operator ==(Command?, Command?)
Checks whether this command is equal to another one.
- operator !=(Command?, Command?)
Checks whether this command is not equal to another one.