Discord.Addons.CommandsExtension 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Discord.Addons.CommandsExtension --version 1.0.3                
NuGet\Install-Package Discord.Addons.CommandsExtension -Version 1.0.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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                
#r "nuget: Discord.Addons.CommandsExtension, 1.0.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. 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                

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 👷🚧

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 6,283 1/6/2019
1.0.3 1,175 1/4/2019