discord-net/Discord.Net

[Bug]: SocketMessageComponent.Message.ReferencedMessage always returns null

drizzle-mizzle opened this issue · 1 comments

Check The Docs

  • I double checked the docs and couldn't find any useful information.

Verify Issue Source

  • I verified the issue was caused by Discord.Net.

Check your intents

  • I double checked that I have the required intents.

Description

When you get a message from an executed button:

image

...it has a Reference, but there's no ReferencedMessage.

Example:

  • creating message with a button and a reference on another message:

    image

  • press any button:

    image

Version

3.9.0

Working Version

Logs

Sample

private async Task HandleButton(SocketMessageComponent component)
{
    var message = component.Message;
    var messageRef = message.ReferencedMessage;
    // ...
}

Packages

That's not a bug.
API doesn't send the referenced message with interaction payload