Fix role selector
This commit is contained in:
parent
441419b92b
commit
9d452ed8cb
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2502,7 +2502,7 @@ checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "reminder-rs"
|
name = "reminder-rs"
|
||||||
version = "1.7.16"
|
version = "1.7.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"axum",
|
"axum",
|
||||||
"base64 0.22.0",
|
"base64 0.22.0",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "reminder-rs"
|
name = "reminder-rs"
|
||||||
version = "1.7.16"
|
version = "1.7.17"
|
||||||
authors = ["Jude Southworth <judesouthworth@pm.me>"]
|
authors = ["Jude Southworth <judesouthworth@pm.me>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "AGPL-3.0 only"
|
license = "AGPL-3.0 only"
|
||||||
|
@ -17,7 +17,7 @@ export const Mentions = ({ input }) => {
|
|||||||
{
|
{
|
||||||
trigger: "@",
|
trigger: "@",
|
||||||
values: (roles || [])
|
values: (roles || [])
|
||||||
.filter((role) => role.name === "@everyone")
|
.filter((role) => role.name !== "@everyone")
|
||||||
.map(({ id, name }) => ({ key: name, value: id })),
|
.map(({ id, name }) => ({ key: name, value: id })),
|
||||||
allowSpaces: true,
|
allowSpaces: true,
|
||||||
selectTemplate: (item) => `<@&${item.original.value}>`,
|
selectTemplate: (item) => `<@&${item.original.value}>`,
|
||||||
|
Loading…
Reference in New Issue
Block a user