Skip to content

/webhooks/:id/:token/slack ignores wait query parameter #1067

Closed
@vladfrangu

Description

Attempting to send a message through a webhook on the slack path ignores the wait parameter, and always returns "ok"

curl --request POST \
  --url https://canary.discordapp.com/api/webhooks/:id/:token/slack?wait=true \
  --header 'content-type: application/json' \
  --data '{
  "username": "Test123",
  "attachments": [{
    "pretext": "this looks pretty cool",
    "color": "#F0F",
    "footer": "This is a test",
    "ts": 1565708994
  }]
}'

Per the docs, waits for server confirmation of message send before response (defaults to true; when false a message that is not saved does not return an error)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions