예제 #1
0
        public async Task Help([Name("(Optional) Command name")] string commandName = "")
        {
            if (commandName == "")
            {
                await ReplyAsync(embed : EmbedFactory.ListCommands(_commands.Modules));

                return;
            }

            var command = _commands.Commands.FirstOrDefault(c => c.Name == commandName);

            if (command is null)
            {
                await ReplyAsync("Command not found");

                return;
            }

            await ReplyAsync(embed : EmbedFactory.CommandInfo(command));
        }