Esempio n. 1
0
        public static Embed FormatCommandHelp(CommandInfo command)
        {
            var embed = new EmbedBuilder()
                        .WithColor(Constants.DefaultEmbedColour)
                        .WithTitle(command.Name)
                        .AddField("Usage", HelpUtilities.GetCommandUsage(command))
                        .AddField("Summary", command.Summary);

            if (command.Aliases.Count != 0)
            {
                embed.AddField("Aliases", string.Join(',', command.Aliases));
            }

            if (command.Remarks != null)
            {
                embed.AddField("Remarks", command.Remarks);
            }

            return(embed.Build());
        }