* Don't show @everyone in the role picker
* Show some text on the image picker talking about Discord CDN
* Correct == in todos
This commit is contained in:
2024-04-11 15:40:50 +01:00
parent 5e99a6f9de
commit bb2128a7ed
3 changed files with 10 additions and 3 deletions

View File

@ -16,7 +16,9 @@ export const Mentions = ({ input }) => {
collection: [
{
trigger: "@",
values: (roles || []).map(({ id, name }) => ({ key: name, value: id })),
values: (roles || [])
.filter((role) => role.name === "@everyone")
.map(({ id, name }) => ({ key: name, value: id })),
allowSpaces: true,
selectTemplate: (item) => `<@&${item.original.value}>`,
menuItemTemplate: (item) => `@${item.original.key}`,