Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Message Reference Invalid for Forwarded messages #2382

Copy link
Copy link
@VollRagm

Description

@VollRagm
Issue body actions

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 the message referenced (See screenshot).

Image

--> message.Reference.Channel is correct
--> message.Reference.Message.ChannelId is wrongly set, for that reason the message is null and ReferencedMessage also is invalid

Expected Behaviour: message.Reference.Message.ChannelId should match message.Reference.Channel.Id and the message object should be valid.

What version of the library are you using?

v5.0.0-nightly (make sure you are using the latest nightly!)

What .NET version are you using? Make sure to use the latest patch release for your major version.

.NET 9.0

Operating System

Windows 10

Reproduction Steps

  • Forward a message from one channel to another.
  • Fetch the forwarded message it via GetMessagesAsync.
  • Check message.Reference.Message.ChannelId, it points to the channel the "forwarded message" is in, not the original message.

Trace Logs


Exceptions or other error messages

Anything else you'd like to share

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.