Skip to content

Add raw data getter on Message #2870

@freya022

Description

@freya022

General Troubleshooting

  • I have checked for similar issues on the Issue-tracker.
  • I have updated to the latest JDA version
  • I have checked the branches or the maintainers' PRs for upcoming features.

Feature Request

JDA could have a way to optionally store the raw data of each message, similar to JDABuilder#setEventPassthrough(boolean) and GenericEvent#getRawData().

Example Use-Case

public void onGetRawMessage(MessageContextInteractionEvent event) {
    final var rawJson = event.getTarget().getRawData();

    // reply JSON in a file
}

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