Comments (1)
think you have an invalid format. try a payload like this?
let token = 'xx'
let channel = 'xxx'
let text = 'descriptive text'
let attachments = [{
text: "Choose a game to play",
fallback: "You are unable to choose a game",
callback_id: "wopr_game",
attachment_type: "default",
actions: [{
name: "game",
text: "Chess",
type: "button",
value: "chess"
}]
}]
await slack.chat.postMessage({token, channel, text, attachments})
from slack.
Related Issues (20)
- Changelog HOT 4
- No file for browser in npm package HOT 6
- Proxy handling HOT 4
- Typescript defs don't support OO style pattern HOT 16
- Can't Handle Errors Gracefully HOT 4
- Failed to minify / pkg command fails HOT 3
- Listen for messages using the RTM HOT 4
- How to I get the install jenkins app details? HOT 1
- Workspace Apps X-Slack-User HTTP header HOT 8
- proposal: more helpful stack traces HOT 3
- Not running in webpack target electron-renderer HOT 5
- `useElectronNet: true` doesn't work HOT 3
- Support for chat.scheduleMessage
- promise return twice HOT 3
- Sending duplicate messages
- Webpack support HOT 5
- Support for OAuth V2 endpoints (and possibly other new ones) HOT 2
- Support for undocumented API endpoints and custom headers HOT 1
- Compilation Errors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slack.