Tweaks
* 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:
@ -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}`,
|
||||
|
Reference in New Issue
Block a user