Пример #1
0
        public override Embed Render()
        {
            var builder = new EmbedBuilder()
            {
                Color       = Color.Orange,
                Description = "Non sono mica qui perchè me lo hai chiesto te!! non fraintendere! mpfh!!"
            };

            builder.WithAuthor(Name, Avatar);

            string logsString = "";

            foreach (TimeLog log in logs)
            {
                string l = $"{log.Time.ToString("hh:mm:ss")} [{log.Log.Severity}] {log.Log.Source}\n{log.Log.Exception?.ToString() ?? log.Log.Message}";
                logsString += Formatting.Code(l);
            }

            builder.Description += logsString;

            return(builder.Build());
        }