zaanposni / discord-masz

MASZ is a selfhostable highly sophisticated moderation bot for Discord. Includes a web dashboard and a discord bot.
https://discord.gg/5zjpzw6h3S
Other
71 stars 18 forks source link

Mentioning of channels/users in case description of slash commands #566

Closed FlixProd closed 1 year ago

FlixProd commented 1 year ago

When creating a case using a slash command (/warn, /mute, ...) you can mention a channel or a user in the description. Generally this is very useful to describe the details of the case, especially for complex situations. Unfortunately, the dashboard view of the case just displays the raw content (<@1234>, <#1234>) and also thinks that the channel id refers to a case and trys to link it. To fix this, MASZ should replace the mentions of the provided description with the name of the user/channel (@Sapphire, #chat).

image image

FlixProd commented 1 year ago

Same problem with titles

image

zaanposni commented 1 year ago

@FlixProd Is this design okay or would you like something more distinguished like discord uses? image in edit mode: image

zaanposni commented 1 year ago

Titles are reserved for string only, as they are used at many places, there is no good way to support replacing and styling there.

FlixProd commented 1 year ago

Is this design okay or would you like something more distinguished like discord uses?

No, that's already more than I wanted! Great, thank you! 🚀

zaanposni commented 1 year ago

fixed in release branch