frozor-slack-attachments

1.0.3 • Public • Published

frozor-slack-attachments

No dependencies.

const {Attachment} = require('frozor-slack-attachments')

To set a property, run set$CapitalizedPropertyName, for instance setTitle or setText or setFooterIcon. Can be chained.

To get a property, do the same thing but with get, for instance getTitle.

To add a field to an attachment, call addField(obj), and to completely replace fields, call setFields(obj)

All properties can be seen in config/index.js. They are split at _ and then each part is capitalized, turning footer_icon into FooterIcon or title into Title.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    1
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i frozor-slack-attachments

Weekly Downloads

1

Version

1.0.3

License

ISC

Last publish

Collaborators

  • arcticzeroo