Skip to content

Some emojis break MessageCommandProcessor integration #2266

Description

@13xforever

Summary

When registering context menu commands, it's common to use emojis for better visual identification, but using some emojis may result in Command X was not found error.

What version of the library are you using?

v5.0.0-nightly (make sure you are using the latest nightly!)

What .NET version are you using? Make sure to use the latest patch release for your major version.

.NET 9.0

Operating System

Windows 11 24H2

Reproduction Steps

Register message / user context menu command using one of the example emojis with variaiton selector.

Trace Logs


Exceptions or other error messages

Anything else you'd like to share

The issue seem to be mostly affecting retrofitted dingbats (e.g. 🗣⚠™) that were incorporated in emoji, where you can use additional vs15 or vs16 (\uFE0E or \uFE0F) trailing indicator to select emoji representation (🗣︎⚠︎™︎ vs 🗣️⚠️™️; usually plain text vs colored glyphs).

The issue seems to be occurring when you use any trailing extra modificator/indicator.

It seems that either D#+, or Discord is stripping all VS modifiers, so the text you see in the client context menu has only the base code point.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    commandsFor issues related to DSharpPlus.Commands

    Type

    Fields

    Effort

    None yet

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions