discord-api-docs
discord-api-docs copied to clipboard
Missing `guild_id` in message_reference for POLL_RESULT message type inside server
Description
for poll result (POLL_RESULT) system messages that Discord sends in a server, message_reference is missing guild_id field that includes ID of the server/guild.
Steps to Reproduce
- Create/start a poll inside a server/guild.
- Wait for it to finish/close and for POLL_RESULT message to appear in channel by Discord.
- Inspect the raw message payload of said POLL_RESULT message (fetch it from API if needed)
- Check
message_referencefield and its contents. - Verify/check if
guild_idis present in it.
Expected Behavior
guild_id should be present in message_reference object for messages that are sent in a server/guild.
Current Behavior
guild_id is missing in message_reference object for given POLL_RESULT message, message_reference only contains type, channel_id and message_id fields.
Screenshots/Videos
No response
Client and System Information
API v10
the docs say that poll result messages only include message_id and channel_id, so this behavior seems to match the intended/documented behavior.