Title: Message Reference Invalid for Forwarded messages · Issue #2382 · DSharpPlus/DSharpPlus · GitHub
Open Graph Title: Message Reference Invalid for Forwarded messages · Issue #2382 · DSharpPlus/DSharpPlus
X Title: Message Reference Invalid for Forwarded messages · Issue #2382 · DSharpPlus/DSharpPlus
Description: Summary Retrieving a forwarded message via GetMessagesAsync returns the correct message, however the referenced message (message.Reference.Message) contains the Channel ID of the "forwarded message" channel, instead of the channel id of ...
Open Graph Description: Summary Retrieving a forwarded message via GetMessagesAsync returns the correct message, however the referenced message (message.Reference.Message) contains the Channel ID of the "forwarded message...
X Description: Summary Retrieving a forwarded message via GetMessagesAsync returns the correct message, however the referenced message (message.Reference.Message) contains the Channel ID of the "forwarded me...
Opengraph URL: https://github.com/DSharpPlus/DSharpPlus/issues/2382
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Message Reference Invalid for Forwarded messages","articleBody":"### Summary\n\nRetrieving a forwarded message via GetMessagesAsync returns the correct message, however the referenced message (message.Reference.Message) contains the Channel ID of the \"forwarded message\" channel, instead of the channel id of the message referenced (See screenshot).\n\n\u003cimg width=\"949\" height=\"325\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/f634df3b-7e02-44fb-8728-716b290139f4\" /\u003e\n\n--\u003e message.Reference.Channel is correct\n--\u003e message.Reference.Message.ChannelId is wrongly set, for that reason the message is null and ReferencedMessage also is invalid\n\nExpected Behaviour: message.Reference.Message.ChannelId should match message.Reference.Channel.Id and the message object should be valid.\n\n\n### What version of the library are you using?\n\nv5.0.0-nightly (make sure you are using the latest nightly!)\n\n### What .NET version are you using? Make sure to use the latest patch release for your major version.\n\n.NET 9.0\n\n### Operating System\n\nWindows 10\n\n### Reproduction Steps\n\n- Forward a message from one channel to another.\n - Fetch the forwarded message it via GetMessagesAsync.\n - Check message.Reference.Message.ChannelId, it points to the channel the \"forwarded message\" is in, not the original message. \n\n### Trace Logs\n\n```log\n\n```\n\n### Exceptions or other error messages\n\n```txt\n\n```\n\n### Anything else you'd like to share\n\n_No response_","author":{"url":"https://github.com/VollRagm","@type":"Person","name":"VollRagm"},"datePublished":"2025-09-26T00:51:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2382/DSharpPlus/issues/2382"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0b181721-26d6-2949-cb30-f4a761630ab9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C6DA:C71DF:D68DA0:116FD74:698D7104 |
| html-safe-nonce | 084020801dedde9d5787d412c81c23a13b4e0f7ab5579cc61212e013e1fe1ed8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkRBOkM3MURGOkQ2OERBMDoxMTZGRDc0OjY5OEQ3MTA0IiwidmlzaXRvcl9pZCI6IjI3NDM2MTY3MDUyMDQ2Nzg5MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 92fe2181ff7cb96c729070bc7d7432a9d22b38b539116306c187fa31b1f871ee |
| hovercard-subject-tag | issue:3455433886 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/DSharpPlus/DSharpPlus/2382/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b02b88b97023323ca19a6f9145765f416b4e87f54f1f5e1fa6db2c9b5d8f57bb/DSharpPlus/DSharpPlus/issues/2382 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b02b88b97023323ca19a6f9145765f416b4e87f54f1f5e1fa6db2c9b5d8f57bb/DSharpPlus/DSharpPlus/issues/2382 |
| og:image:alt | Summary Retrieving a forwarded message via GetMessagesAsync returns the correct message, however the referenced message (message.Reference.Message) contains the Channel ID of the "forwarded message... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | VollRagm |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a |
| turbo-cache-control | no-preview |
| go-import | github.com/DSharpPlus/DSharpPlus git https://github.com/DSharpPlus/DSharpPlus.git |
| octolytics-dimension-user_id | 36208721 |
| octolytics-dimension-user_login | DSharpPlus |
| octolytics-dimension-repository_id | 67243489 |
| octolytics-dimension-repository_nwo | DSharpPlus/DSharpPlus |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 67243489 |
| octolytics-dimension-repository_network_root_nwo | DSharpPlus/DSharpPlus |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 715890fa442134f528fb422ab338c0ad55c7a025 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width