discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

Bot-Owned Webhooks do not always have content returned by API

Open onerandomusername opened this issue 3 years ago • 1 comments

Description

Bot-owned webhooks do not provide their content when fetching the messages over the rest API using the bot token as authorisation.

Steps to Reproduce

  • Have an application that doesn't have the message content intent

  • Create a webhook with that bot

  • Execute the webhook with some message content.

  • Attempt to fetch the created message with the bot token as authorisation.

Expected Behavior

The message had content returned by the api.

Current Behavior

The message had no content.

Screenshots/Videos

image

Client and System Information

any client api v10

onerandomusername avatar Sep 01 '22 19:09 onerandomusername

As a temp workaround, you should be able to use the webhook token to fetch message content in this case

typpo avatar Sep 01 '22 19:09 typpo