ContextBlock
Creates an ContextBlock instance.
Return: The ContextBlock instance.
Sets a custom identifier for the ContextBlock instance.
Return: The ContextBlock instance.
Adds an ImageElement to this ContextBlock instance.
ImageElementReturn: The new ImageElement instance.
Throws: Megaphone.Provider.SlackBlockException when more than 25 elements are added.
Adds a TextObject to this ContextBlock instance.
TextObjectReturn: The new TextObject instance.
Throws: Megaphone.Provider.SlackBlockException when more than 25 elements are added.
Converts the ContextBlock instance to a serializable format.
Return: (struct) A struct representing this ContextBlock instance.
Throws: Megaphone.Provider.SlackBlockException when either 0 or more than 25 elements are present.