Fix role selector

This commit is contained in:
jude 2024-05-10 17:37:27 +01:00
parent 441419b92b
commit 9d452ed8cb
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@ -2502,7 +2502,7 @@ checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56"
[[package]]
name = "reminder-rs"
version = "1.7.16"
version = "1.7.17"
dependencies = [
"axum",
"base64 0.22.0",

View File

@ -1,6 +1,6 @@
[package]
name = "reminder-rs"
version = "1.7.16"
version = "1.7.17"
authors = ["Jude Southworth <judesouthworth@pm.me>"]
edition = "2021"
license = "AGPL-3.0 only"

View File

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