Skip to content

Expose message_reference.type on MessageReference#311

Merged
KubaZ2 merged 4 commits intoNetCordDev:alphafrom
Parl4224h:api/add-message-ref-type
Apr 7, 2026
Merged

Expose message_reference.type on MessageReference#311
KubaZ2 merged 4 commits intoNetCordDev:alphafrom
Parl4224h:api/add-message-ref-type

Conversation

@Parl4224h
Copy link
Copy Markdown
Contributor

Adds support for the type field on message_reference objects returned in message payloads, including MESSAGE_CREATE gateway events and retrieved messages.

Discord documents message_reference.type as optional for now, with unset values treated as the default value (0, Reply) for backward compatibility. To match that behavior, MessageReference.Type now exposes the field and assumes the default when it is missing.

Docs: https://docs.discord.com/developers/resources/message#message-reference-structure

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

The documentation preview is available at https://preview.netcord.dev/311.

Co-authored-by: Kuba_Z2 <77853483+KubaZ2@users.noreply.github.com>
Co-authored-by: Kuba_Z2 <77853483+KubaZ2@users.noreply.github.com>
@KubaZ2 KubaZ2 merged commit 629bd63 into NetCordDev:alpha Apr 7, 2026
1 check passed
@KubaZ2
Copy link
Copy Markdown
Member

KubaZ2 commented Apr 7, 2026

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants