Skip to content

Component v2 being sendable when forwarding a message #7648

Closed
@imnaiyar

Description

@imnaiyar

Description

When you forward a message, you are able to send components v2 and api doesn't return any errors.
It doesn't render on mobile, but it does on desktop clients

Steps to Reproduce

  1. Make a POST request with message_reference along with components and providing IS_COMPONENTS_V2 flag
curl -X POST "https://discord.com/api/v10/channels/{channel_id}/messages" \
  -H "Authorization: Bot {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "message_reference": {
      "type": 1,
      "channel_id": "channel_id",
      "guild_id": "guild_id",
      "message_id": "message_id"
    },
    "components": [
      {
        "type": 10, // text input
        "content": "hello"
      }
    ],
    "flags": 32768
  }'

Expected Behavior

The API to return error 160011: Forward messages cannot have additional content

Current Behavior

API doesn't return any error and validation seems to pass. This seems to only happen when you have enabled IS_COMPONENTS_V2 flag. Cv2 components doesn't render on mobile, though it does on desktop

Screenshots/Videos

Image 1: On mobile
Image 2: on desktop client

Image
Image

Client and System Information

Mobile

App: 285.14 (285014) googleRelease; Manifest: "ae7afb9dda48939dc47f05c2094257f4"; Build Override: N/A; Device: dm3q (SM-S918U1) OS 35;

Desktop (Web)

stable 413716 (49372f4) Build Override: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions