Exemplo n.º 1
0
        private Embed CreateEmbed(List <EmbedFieldBuilder> fields, SocketUser user, int pageNumber)
        {
            var builder = new EmbedBuilder()
            {
                Color        = Color.Blue,
                Title        = $"Nápověda pro uživatele {user.GetFullName()} ({GetBotBestPermissions(user)})",
                Fields       = fields,
                ThumbnailUrl = Context.Client.CurrentUser.GetUserAvatarUrl()
            };

            builder
            .WithFooter($"Odpověď pro {user.GetShortName()} | Strana {pageNumber}", user.GetUserAvatarUrl())
            .WithCurrentTimestamp();

            return(builder.Build());
        }