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

Mentioning user in slash command string option type still contains the `!` bang

Open GoogleGenius opened this issue 1 year ago • 1 comments

Description

When mentioning a user in a slash command string option, it seems that Discord still uses the old mention formatting with the ! bang in front of the user ID: <@!1234567890>. It should have been updated to use the new format, which does not contain the exclamation mark.

Steps to Reproduce

Use a slash command that accepts string input. Mention a user inside of it. Printing the raw message content reveals that it still contains the ! bang.

Expected Behavior

The mention is formatted using the new style without the ! bang: <@1234567890>.

Current Behavior

The mention is formatted using the old style with the ! bang: <@!1234567890>.

Screenshots/Videos

No response

Client and System Information

Stable 135402 (4c5bcd6) Host 1.0.9005 Windows 10 64-Bit (10.0.22622).

(Windows 11 actually but Microsoft was not bothered to update the versioning number when it debuted).

GoogleGenius avatar Jul 09 '22 02:07 GoogleGenius

I am aware this is deprecated behavior, but shouldn't it be updated?

GoogleGenius avatar Jul 09 '22 14:07 GoogleGenius

A fix should be out shortly

devsnek avatar Sep 19 '22 20:09 devsnek