Skip to content

Retry-After not documented #2360

@takase1121

Description

@takase1121

Description
Retry-After header in Webhook Execute is in milliseconds instead of seconds.
This is inconsistent with retry_after property in JSON message that is received with a 429
and is also against what is normally used.
This should be documented to avoid confusion.

Steps to Reproduce
Spam a webhook.
You don't even have to spam, it just works, see #1454

Expected Behavior

  • Retry-After is in seconds instead of milliseconds OR
  • A section that mentions about Retry-After

Current Behavior
Retry-After is in milliseconds, I multiplied it by 1000 and I thought
Discord gave me days of ratelimits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions