Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

SlackAction > Doesn't "url" miss ? #39

Open
adriens opened this issue Dec 15, 2017 · 1 comment
Open

SlackAction > Doesn't "url" miss ? #39

adriens opened this issue Dec 15, 2017 · 1 comment

Comments

@adriens
Copy link
Contributor

adriens commented Dec 15, 2017

Actually, when i have a look at Slack api (https://api.slack.com/docs/message-attachments#action_fields), i can see the url, while on the slack-webhook code, i only can see

this.name = name;
this.text = text;
this.type = type;
this.value = value;

Slack side :

{
  "text": "<@W1A2BC3DD> approved your travel request. Book any airline you like by continuing below.",
  "channel": "C061EG9SL",
  "attachments": [
    {
      "fallback": "Book your flights at https://flights.example.com/book/r123456",
      "actions": [
        {
          "type": "button",
          "name": "travel_request_123456",
          "text": "Book flights 🛫",
          "url": "https://flights.example.com/book/r123456",
          "style": "primary"
        },
        {
          "type": "button",
          "name": "travel_cancel_123456",
          "text": "Cancel travel request",
          "url": "https://requests.example.com/cancel/r123456",
          "style": "danger"
        }
      ]
    }
  ]
}
@adriens
Copy link
Contributor Author

adriens commented Dec 15, 2017

hence...should an url member variable be added ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant