cushion v0.0.3 Cushion.Update

Struct for creating an update.

  • :text binary, The text of the update, required
  • :profiles [""], List of binaries that represent Buffer profile IDs, required
  • :attachment boolean, Determines whether to treat links in text as attachments, optional, default: false
  • :shorten boolean, Determines whether to use the url shortener on any link, optional, default: true

Example

iex> %Cushion.Update{text: "The update text", profiles: ["1234"]}
%Cushion.Update{attachment: false, profiles: ["1234"], shorten: true, text: "Update Text"}