discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

Slash commands on mobile no longer calculate proper min/max length with emojis in options

Open brenfwd opened this issue 1 year ago • 1 comments

Description

When entering an emoji into an option on mobile, it only calculates the length of the name of the emoji, not the full formatted emoji.

Steps to Reproduce

  1. Create a text option with a min length set to 23 characters (the minimum possible for a custom emoji with ID).
  2. Observe that the option works fine on desktop and web
  3. Observe that the option does not work on mobile

Expected Behavior

The emoji should calculate into the length of input before sending the command.

Current Behavior

The emoji only counts as plain text up until the command is sent (after length is validated).

Screenshots/Videos

image

Client and System Information

Discord for Android, Discord for iOS

brenfwd avatar Aug 04 '22 14:08 brenfwd