I'm using code via the modular approach for commands, however, I'm not sure how to add subcommands to it ? The doc's have it laid out as
https://discordnet.dev/guides/int_basics/application-commands/slash-commands/subcommands.html
But, I'm trying to write it as
using Discord;
using Discord.Interactions;
namespace UtilitiesBot.Discord.Commands.Moderation
{
public partial class ServerCommands : InteractionModuleBase<SocketInteractionContext>
{
private ILogger _logger = DiscordBot.GetLogger();
[SlashCommand("clear", "Clear messages!")]
public async Task Clear(
[Summary("messageCount", "Count of Messages to Clear")]
int messageCount = 1)
{
[CODEHERE]
}
}
}