skyra-project / discord-components

Discord Webcomponents for real looking messages on the web
MIT License
244 stars 31 forks source link

request: Message element without "user header" #407

Closed nurdism closed 2 weeks ago

nurdism commented 3 weeks ago

Is there an existing issue or pull request for this?

Feature description

It would be nice to have the option to have a discord-message element that mimics a message sent by the same user in succession like so

Desired solution

Add a bool (I'm not sure about the name) that will toggle a user header.

Alternatives considered

Right now, I am just looking to see if the last message was from the same user and then appending the message, but there are some inconsistencies between this lib and Discord. Specifically, the attachments and embeds.

Additional context

No response

nurdism commented 3 weeks ago

this would be very close to compact-mode just w/o a user title and the content on the same line

favna commented 2 weeks ago

Added in v4.0.0-alpha.19, with the option being named message-body-only (or messageBodyOnly for React)