Skip to content

Some unicode characters stripped from autocomplete responsesΒ #4691

@maddysrc

Description

@maddysrc

Description

Some unicode characters are getting stripped from autocomplete responses, causing emoji to show up incorrectly.

Steps to Reproduce

Respond to an autocomplete interaction with

{
  "type": 8,
  "data": {
    "choices": [
      {
        "name": "πŸ³οΈβ€πŸŒˆ gay_pride_flag",
        "value": "πŸ³οΈβ€πŸŒˆ"
      }
    ]
  }
}

Expected Behavior

The response is returned and shown to the client as-is

Current Behavior

Characters \uFE0F and \u200D get stripped from the response

Screenshots/Videos

image

Client and System Information

Bot info:

  • Library: discord.js@13.6.0
  • Node.js v17.6.0

Clients tested:

  • PTB build 119911/90e94273602cbfd62e06b34dd02c270dfe73a87b
  • Android beta 119.7 build 119107

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions