slack-block-builder
Advanced tools
Comparing version 1.1.0 to 1.2.0
# Change Log | ||
## v1.2.0 – 2020-06-26 | ||
* Parameter `ts` for the `Message` surface object is now supported. | ||
## v1.1.0 – 2020-06-17 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "slack-block-builder", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Maintainable code for interactive Slack messages, modals and home tabs. A must-have for the Slack Block Kit framework.", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -294,2 +294,4 @@ <p align="center"> | ||
[JSX-Slack](https://github.com/speee/jsx-slack) – Awesome way to create Slack Block Kit UIs using JSX. | ||
## :fire: Acknowledgements | ||
@@ -296,0 +298,0 @@ |
@@ -14,2 +14,3 @@ const { Surface } = require('./base'); | ||
this.as_user = params.asUser; | ||
this.ts = params.ts; | ||
this.thread_ts = params.threadTs; | ||
@@ -31,2 +32,3 @@ this.replace_original = params.replaceOriginal; | ||
this.props.text = params.text; | ||
this.props.ts = params.ts; | ||
this.props.threadTs = params.threadTs; | ||
@@ -92,2 +94,15 @@ this.props.postAt = params.postAt; | ||
/** | ||
* Used to update a message. Sets the timestamp of the message to update. | ||
* | ||
* {@link https://api.slack.com/messaging/composing|View in Slack API Documentation} | ||
* | ||
* @param {timestamp} timestamp The timestamp of message to be replied to | ||
* @return {this} The instance on which the method is called | ||
*/ | ||
ts(timestamp) { | ||
return this.set(timestamp, props.ts); | ||
} | ||
/** | ||
* Sets the message to be replace the original message from which the interaction was received | ||
@@ -94,0 +109,0 @@ * |
@@ -55,2 +55,3 @@ module.exports = { | ||
asUser: 'as_user', | ||
ts: 'ts', | ||
threadTs: 'thread_ts', | ||
@@ -57,0 +58,0 @@ replaceOriginal: 'replace_original', |
@@ -64,2 +64,3 @@ module.exports = { | ||
inChannel: 'inChannel', | ||
ts: 'ts', | ||
}; |
@@ -59,2 +59,3 @@ const types = require('./type-validators'); | ||
asUser: types.isBool, | ||
ts: types.isTimestamp, | ||
threadTs: types.isTimestamp, | ||
@@ -61,0 +62,0 @@ replaceOriginal: types.isBool, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
155305
3673
307