Table of Contents

Class CommandListModule

Namespace
FishMMO.DiscordBot.Modules
Assembly
FishMMO-DiscordBot.dll

Top-level /commands command that lists all commands available to the calling user, filtered by Discord permissions, role requirements, and per-guild disabled commands.

public class CommandListModule : ModuleBase<SocketCommandContext>, IModuleBase
Inheritance
ModuleBase<SocketCommandContext>
CommandListModule
Implements
IModuleBase
Inherited Members
ModuleBase<SocketCommandContext>.BeforeExecuteAsync(CommandInfo)
ModuleBase<SocketCommandContext>.BeforeExecute(CommandInfo)
ModuleBase<SocketCommandContext>.AfterExecuteAsync(CommandInfo)
ModuleBase<SocketCommandContext>.AfterExecute(CommandInfo)
ModuleBase<SocketCommandContext>.OnModuleBuilding(CommandService, ModuleBuilder)
ModuleBase<SocketCommandContext>.Context

Constructors

CommandListModule(CommandService, BotConfigurationService)

public CommandListModule(CommandService commandService, BotConfigurationService botConfigService)

Parameters

commandService CommandService
botConfigService BotConfigurationService

Methods

ListCommandsAsync()

Lists all commands the calling user can execute in this server, based on their Discord permissions, configured role requirements, and any commands disabled by moderators.

[Command("commands")]
[Summary("Lists all commands available to you based on your permissions.")]
public Task ListCommandsAsync()

Returns

Task