public static BotMessageContent ApplyStyle(BotMessageContent content, BotMessageStyle style) { var styledText = content?.Text?.Length > 0 ? ApplyStyle(content.Text, style) : null; var styledEmbed = ApplyStyle(content?.Embed, style); return(new BotMessageContent(styledText, styledEmbed)); }
public BotMessage(BotMessageContent content, BotMessageStyle style = BotMessageStyle.Default) { Content = BotMessageContentStyler.ApplyStyle(content, style); Style = style; }