Table of Contents

Class CommandBuilder

Namespace
Discord.Commands.Builders
Assembly
Discord.Net.Commands.dll
public class CommandBuilder
Inheritance
CommandBuilder
Inherited Members

Properties

Aliases

public IReadOnlyList<string> Aliases { get; }

Property Value

IReadOnlyList<string>

Attributes

public IReadOnlyList<Attribute> Attributes { get; }

Property Value

IReadOnlyList<Attribute>

IgnoreExtraArgs

public bool IgnoreExtraArgs { get; set; }

Property Value

bool

Module

public ModuleBuilder Module { get; }

Property Value

ModuleBuilder

Name

public string Name { get; set; }

Property Value

string

Parameters

public IReadOnlyList<ParameterBuilder> Parameters { get; }

Property Value

IReadOnlyList<ParameterBuilder>

Preconditions

public IReadOnlyList<PreconditionAttribute> Preconditions { get; }

Property Value

IReadOnlyList<PreconditionAttribute>

PrimaryAlias

public string PrimaryAlias { get; set; }

Property Value

string

Priority

public int Priority { get; set; }

Property Value

int

Remarks

public string Remarks { get; set; }

Property Value

string

RunMode

public RunMode RunMode { get; set; }

Property Value

RunMode

Summary

public string Summary { get; set; }

Property Value

string

Methods

AddAliases(params string[])

public CommandBuilder AddAliases(params string[] aliases)

Parameters

aliases string[]

Returns

CommandBuilder

AddAttributes(params Attribute[])

public CommandBuilder AddAttributes(params Attribute[] attributes)

Parameters

attributes Attribute[]

Returns

CommandBuilder

AddParameter(string, Type, Action<ParameterBuilder>)

public CommandBuilder AddParameter(string name, Type type, Action<ParameterBuilder> createFunc)

Parameters

name string
type Type
createFunc Action<ParameterBuilder>

Returns

CommandBuilder

AddParameter<T>(string, Action<ParameterBuilder>)

public CommandBuilder AddParameter<T>(string name, Action<ParameterBuilder> createFunc)

Parameters

name string
createFunc Action<ParameterBuilder>

Returns

CommandBuilder

Type Parameters

T

AddPrecondition(PreconditionAttribute)

public CommandBuilder AddPrecondition(PreconditionAttribute precondition)

Parameters

precondition PreconditionAttribute

Returns

CommandBuilder

WithName(string)

public CommandBuilder WithName(string name)

Parameters

name string

Returns

CommandBuilder

WithPriority(int)

public CommandBuilder WithPriority(int priority)

Parameters

priority int

Returns

CommandBuilder

WithRemarks(string)

public CommandBuilder WithRemarks(string remarks)

Parameters

remarks string

Returns

CommandBuilder

WithRunMode(RunMode)

public CommandBuilder WithRunMode(RunMode runMode)

Parameters

runMode RunMode

Returns

CommandBuilder

WithSummary(string)

public CommandBuilder WithSummary(string summary)

Parameters

summary string

Returns

CommandBuilder