Table of Contents

Interface ICommandGroupDefaultActionBuilder<T>

Namespace
BSGameLib.Chat.Builder
Assembly
BSGameLib.Chat.dll

Sets the sub-command a group runs when it is typed with nothing after it.

public interface ICommandGroupDefaultActionBuilder<out T> : ICommandGroupBuilder where T : ICommandGroupDefaultActionBuilder<out T>

Type Parameters

T
Inherited Members

Methods

WithDefaultAction(string)

Sets the sub-command with the given name as the group's default. The sub-command must have been added with WithCommand first, and must take no parameters.

T WithDefaultAction(string commandName)

Parameters

commandName string

Returns

T

Exceptions

ArgumentException

No sub-command has that name, or it takes parameters.