SlackChatMessageAttachment Class

Summary

Class to allow for message attachments
Assembly
Cake.Slack.dll
Namespace
Cake.Slack.Chat
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["SlackChatMessageAttachment"] class Type type-node

Syntax

public sealed class SlackChatMessageAttachment

Attributes

Type Description
CakeAliasCategoryAttribute

Constructors

Name Summary
SlackChatMessageAttachment() Initializes a new instance of the SlackChatMessageAttachment class.

Properties

Name Value Summary
Author_Icon string
The message author's icon url
Author_Link string
Link to the message author
Author_Name string
The message author's name.
Color string
Color displayed with the attachment
Fallback string
Required Text summary of the attachment that is shown by clients that understand attachments but choose not to show them.
Fields IList<SlackChatMessageAttachmentField>
Footer string
Footer text to display in message.
Footer_Icon string
Footer icon to display in message.
Image_Url string
Url to an image to display in message.
Mrkdwn_In IList<string>
Collection of fields that use Slack's Markdown-like message formatting. Valid values are "pretext", "text", and "fields".
Pretext string
Optional Text that should appear above the formatted data
Text string
Optional Text that should appear within the attachment
Thumb_Url string
Url to thumbprint to display in message.
Title string
The message title.
Title_Link string
The message title link.

Extension Methods

Name Value Summary
Dump<SlackChatMessageAttachment>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<SlackChatMessageAttachment>(SlackChatMessageAttachment[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<SlackChatMessageAttachment>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<SlackChatMessageAttachment>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<SlackChatMessageAttachment>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<SlackChatMessageAttachment>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin