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

Missing `guild_id` in message_reference for POLL_RESULT message type inside server

Open owocado opened this issue 1 year ago • 1 comments

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

  1. Create/start a poll inside a server/guild.
  2. Wait for it to finish/close and for POLL_RESULT message to appear in channel by Discord.
  3. Inspect the raw message payload of said POLL_RESULT message (fetch it from API if needed)
  4. Check message_reference field and its contents.
  5. Verify/check if guild_id is 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

owocado avatar Oct 04 '24 16:10 owocado

the docs say that poll result messages only include message_id and channel_id, so this behavior seems to match the intended/documented behavior.

advaith1 avatar Aug 04 '25 06:08 advaith1