Skip to content

PATCHing someone elses message with CV2 sends wrong error message #7658

@vladfrangu

Description

@vladfrangu

Description

If you try to update someone elses message (which 9/10 its accidental), while also providing CV2, you get the wrong error message

Steps to Reproduce

  • curl -X PATCH -H "Authorization: Bot you-wish" -H "Content-Type: application/json" -d '{"components": [{"type": 17,"accent_color": 5793266,"components": [{"type": 10,"content": "::33"}]}],"flags": 32768}' https://canary.discord.com/api/v10/channels/868830230503100426/messages/1389750749797552168

Expected Behavior

You get {"message": "Cannot edit a message authored by another user", "code": 50005}

Current Behavior

You get MESSAGE_CANNOT_USE_LEGACY_FIELDS_WITH_COMPONENTS_V2

Screenshots/Videos

No response

Client and System Information

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsyncedSynced to internal tracker

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy