Table of Contents

Class ModuleInfo

Namespace
Discord.Commands
Assembly
Discord.Net.Commands.dll

Provides the information of a module.

public class ModuleInfo
Inheritance
ModuleInfo
Inherited Members
Extension Methods

Properties

Aliases

Gets a read-only list of aliases associated with this module.

public IReadOnlyList<string> Aliases { get; }

Property Value

IReadOnlyList<string>

Attributes

Gets a read-only list of attributes that apply to this module.

public IReadOnlyList<Attribute> Attributes { get; }

Property Value

IReadOnlyList<Attribute>

Commands

Gets a read-only list of commands associated with this module.

public IReadOnlyList<CommandInfo> Commands { get; }

Property Value

IReadOnlyList<CommandInfo>

Group

Gets the group name (main prefix) of this module.

public string Group { get; }

Property Value

string

IsSubmodule

Gets a value that indicates whether this module is a submodule or not.

public bool IsSubmodule { get; }

Property Value

bool

Name

Gets the name of this module.

public string Name { get; }

Property Value

string

Parent

Gets the parent module of this submodule if applicable.

public ModuleInfo Parent { get; }

Property Value

ModuleInfo

Preconditions

Gets a read-only list of preconditions that apply to this module.

public IReadOnlyList<PreconditionAttribute> Preconditions { get; }

Property Value

IReadOnlyList<PreconditionAttribute>

Remarks

Gets the remarks of this module.

public string Remarks { get; }

Property Value

string

Service

Gets the command service associated with this module.

public CommandService Service { get; }

Property Value

CommandService

Submodules

Gets a read-only list of submodules associated with this module.

public IReadOnlyList<ModuleInfo> Submodules { get; }

Property Value

IReadOnlyList<ModuleInfo>

Summary

Gets the summary of this module.

public string Summary { get; }

Property Value

string