Skip to main content

Class ModuleInfo

Provides the information of a module.

Assembly: Discord.Net.Commands.dll​
View Source​
Declaration
public class ModuleInfo

Properties​

Service​

Gets the command service associated with this module.

View Source​
Declaration
public CommandService Service { get; }

Name​

Gets the name of this module.

View Source​
Declaration
public string Name { get; }

Summary​

Gets the summary of this module.

View Source​
Declaration
public string Summary { get; }

Remarks​

Gets the remarks of this module.

View Source​
Declaration
public string Remarks { get; }

Group​

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

View Source​
Declaration
public string Group { get; }

Aliases​

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

View Source​
Declaration
public IReadOnlyList<string> Aliases { get; }

Commands​

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

View Source​
Declaration
public IReadOnlyList<CommandInfo> Commands { get; }

Preconditions​

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

View Source​
Declaration
public IReadOnlyList<PreconditionAttribute> Preconditions { get; }

Attributes​

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

View Source​
Declaration
public IReadOnlyList<Attribute> Attributes { get; }

Submodules​

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

View Source​
Declaration
public IReadOnlyList<ModuleInfo> Submodules { get; }

Parent​

Gets the parent module of this submodule if applicable.

View Source​
Declaration
public ModuleInfo Parent { get; }

IsSubmodule​

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

View Source​
Declaration
public bool IsSubmodule { get; }

Extension Methods​

  • Discord.Commands.ModuleInfo.Discord.Commands.CommandServiceExtensions.GetExecutableCommandsAsync(Discord.Commands.ICommandContext,System.IServiceProvider)