Пример #1
0
        public EmbedBuilder GetCommandHelp(CommandInfo com, IGuild guild)
        {
            var prefix = _ch.GetPrefix(guild);

            var str = Format.Bold(string.Join("/", com.Aliases.Select(alias => $" `{prefix}{alias}` ").ToArray()).Trim());

            return(new EmbedBuilder()
                   .AddField(str, $"{com.FormattedSummary(prefix)} {GetCommandRequirements(com, guild)}", true)
                   .AddField(GetText("usage", guild), com.FormattedRemarks(prefix), true)
                   .WithFooter(GetText("module", guild, $"{com.Module.GetTopLevelModule().GetModuleName()}{(com.Module == com.Module.GetTopLevelModule() ? "" : $" ({com.Module.GetModuleName()})")}"))
                   .WithOkColor());
        }