Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify the message_reference and referenced_message fields in regards to some system message types #2252

Conversation

LikeLakers2
Copy link
Contributor

@LikeLakers2 LikeLakers2 commented Nov 18, 2020

I found that the message_reference field appears for messages with types 6 (CHANNEL_PINNED_MESSAGE) and 12 (CHANNEL_FOLLOW_ADD).

For messages with type 6 (CHANNEL_PINNED_MESSAGE), message_reference will point towards the pinned message, and referenced_message will be the pinned message's data if the pinned message still exists, but apparently only when getting a channel's message history.

For messages with type 12 (CHANNEL_FOLLOW_ADD), message_reference will point towards the channel that was followed, and referenced_message will not appear.

I'm unsure if the way I described this all is that great -- but it was the best I felt I could do without adding a whole new message.

@LikeLakers2
Copy link
Contributor Author

Derp, forgot that #2053 existed.

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.

None yet

1 participant