public Message ToSlackMessage(ICommentNotification notification, BotElement bot, string channel, bool asUser) { string header = notification.ToMessage(bot, s => s).First(); var fields = new[] { new AttachmentField(bot.Text.Comment, notification.Comment, false) }; return(SlackHelper.CreateSlackMessage(header, fields, bot, channel, bot.GetSetting("standardColor"), asUser)); }
internal static Message CreateMsTeamsMessage(ICommentNotification notification, BotElement bot) { string heading = notification.ToMessage(bot, s => s).First(); return(CreateMsTeamsMessage(heading, new[] { new Fact(bot.Text.Comment, notification.Comment) }, bot.GetSetting("standardColor"))); }
public Message ToSlackMessage(ICommentNotification notification, BotElement bot, string channel, bool asUser) { string header = notification.ToMessage(bot, s => s).First(); var fields = new[] { new AttachmentField(bot.Text.Comment, notification.Comment, false) }; return SlackHelper.CreateSlackMessage(header, fields, bot, channel, bot.GetSetting("standardColor"), asUser); }