Skip to content

Interaction object documentation seems wrong #2590

@hi117

Description

@hi117

Description
Seemingly wrong documentation for the interaction object for webhook based slash commands

Steps to Reproduce
Verify webhook endpoint, inspect object that discord POST's to your endpoint

Expected Behavior
Matches documentation

Current Behavior
Several required fields marked as required in the documentation are missing and a new user field is added.

Screenshots/Videos
Here is an example object returned:

{
  "id": "<redacted>",
  "token": "<redacted>",
  "type": 1,
  "user": {
    "avatar": "<redacted>",
    "discriminator": "<redacted>",
    "id": "<redacted>",
    "public_flags": 0,
    "username": "<redacted>"
  },
  "version": 1
}

Here is a screenshot of the documentation showing the fields that are to be expected:
2021-02-09-174031_1415x503_scrot

Client and System Information

N/A

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