Ejemplo n.º 1
0
        public virtual LocalEmbed ToEmbed()
        {
            var embed = new LocalEmbed()
            {
                Title        = $"{Name} ({ShortName})",
                Description  = Description,
                ThumbnailUrl = IconUrl,
                Color        = Grid.Color,
                Url          = WikiUrl
            };

            embed.AddField("Weight", $"{Weight} kg", true);

            var width  = Grid.Width;
            var height = Grid.Height;

            embed.AddField("Size", $"{width}x{height} ({width * height})", true);

            embed.AddField("Base Price", $"{Price:#,##0} ₽", true);

            embed.WithFooter($"{Kind.Humanize()} • Modified {Modified.Humanize()}");

            return(embed);
        }