discord / discord-api-docs

Official Discord API Documentation
https://discord.com/developers/docs/intro
Other
5.95k stars 1.26k forks source link

Channel history endpoint returns empty messages on v10 even with message content intent #4655

Closed imvaskel closed 2 years ago

imvaskel commented 2 years ago

Description

The channel history endpoint returns messages with no content on api v10 despite the message content intent being present

Note: After testing with others, this seems to not occur on every account.

Steps to Reproduce

Run this

curl "https://canary.discord.com/api/v10/channels/{channel_id}/messages?limit=10"  -H "authorization: bot {token}"

(with proper token) and take a look at the json

Expected Behavior

The messages should contain content, as I have the intent within the developer portal enabled.

Current Behavior

None of the messages have content unless from the bot (see here for json output).

Screenshots/Videos

No response

Client and System Information

originally discovered on discord.py v2.0.0, though this seems to be an issue on any access of the api. WSL / Linux

imvaskel commented 2 years ago

after disabling and reenabling the intent on the dev portal, this fixed itself. going to leave this open as it still seems like a weird issue.

jhgg commented 2 years ago

Dupe of #4552

advaith1 commented 2 years ago

duplicate of known issue #4552

bijij commented 2 years ago

The other issue is closed, so is this wontfix?

jhgg commented 2 years ago

The other issue is closed, so is this wontfix?

https://github.com/discord/discord-api-docs/issues/4552#issuecomment-1058571677