示例#1
0
        private MessageBuilder threePartMessage(string EmbedTitle, string FieldTitle, string FieldValue, uint Color)
        {
            EmbedBuilder.Reset();
            FieldBuilder.Reset();
            MessageBuilder.Reset();

            MessageBuilder.Username  = AdminLogs.Instance.Config.Username;
            MessageBuilder.AvatarUrl = "https://discordapp.com/assets/1cbd08c76f8af6dddce02c5138971129.png";

            FieldBuilder.Inline = true;
            FieldBuilder.Name   = FieldTitle;
            FieldBuilder.Value  = FieldValue;
            EmbedBuilder.AddField(FieldBuilder.Build());

            EmbedBuilder.Color = Color;

            EmbedBuilder.Title = EmbedTitle;
            MessageBuilder.AddEmbed(EmbedBuilder.Build());
            return(MessageBuilder);
        }