Discord.Addons.CommandsExtension 1.0.3

There is a newer version of this package available.
See the version list below for details.
Install-Package Discord.Addons.CommandsExtension -Version 1.0.3
dotnet add package Discord.Addons.CommandsExtension --version 1.0.3
<PackageReference Include="Discord.Addons.CommandsExtension" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Discord.Addons.CommandsExtension --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Discord.Addons.CommandsExtension, 1.0.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Discord.Addons.CommandsExtension as a Cake Addin
#addin nuget:?package=Discord.Addons.CommandsExtension&version=1.0.3

// Install Discord.Addons.CommandsExtension as a Cake Tool
#tool nuget:?package=Discord.Addons.CommandsExtension&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Discord.Net.Addons.CommandsExtension

An extension of Discord.Net.Commands, mainly to get information about your commands as string, ideally to build a help command. Comes with a extension of the CommandService to build a help command easily! <p align="center"> <img src="https://thumbs.gfycat.com/ImpossibleIllustriousIaerismetalmark-small.gif"> </p>

How can I add the package to my project?

This package is uploaded to NuGet:

Main features

  • Auto-generated embed to display a help command.
  • Show your own prefix in the embed.
  • Search modules.
  • Search commands.
  • Display a module icon in the generated help embed.
  • Multiple extensions to get formatted data from your commands and modules as string, to build your own help command.

How to use the auto-generated help embed

If you're looking for an auto-generated embed for your help command, and you don't care about how it looks, this is what you're looking for!

using System.Threading.Tasks;
using Discord.Commands;
using Discord.Addons.CommandsExtension;

namespace MyBot.Modules
{
    public class HelpModule : ModuleBase
    {
        private readonly CommandService _commandService;

        public HelpModule(CommandService commandService)
        {
            _commandService = commandService;
        }

        [Command("help"), Alias("assist"), Summary("Shows help menu.")]
        public async Task Help([Remainder] string command = null)
        {
            var botPrefix = ">"; //replace this with your own prefix.
            var helpEmbed = _commandService.GetDefaultHelpEmbed(command, botPrefix);
            await Context.Channel.SendMessageAsync(embed: helpEmbed);
        }
    }
}
Note: You need to setup dependency injection, adding your CommandService to the container

Add emotes near the module name

The generated embed uses the Remarks attribute to get the emote

[Name("Fun")]
[Remarks("🤠")]
public class FunModule : ModuleBase
{
    //your commands here
}

That's cool! And can I use my own embed format?

🚧👷 Under construction 👷🚧

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.4 2,473 1/6/2019
1.0.3 419 1/4/2019