From 6f058c118bf3671e4ea347552121d3142afc0951 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Fri, 15 Dec 2023 19:33:53 -0500 Subject: [PATCH] fix role mentions --- src/components/messaging/Message.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/messaging/Message.tsx b/src/components/messaging/Message.tsx index 7fd2046..62cf880 100644 --- a/src/components/messaging/Message.tsx +++ b/src/components/messaging/Message.tsx @@ -32,7 +32,7 @@ function Message({ message, header }: Props) { const isRoleMentioned = guild && "mention_roles" in message && - message.mention_roles.some((role) => guild.members.me?.roles.some((role) => role.id === role.id)); + message.mention_roles.some((r1) => guild.members.me?.roles.some((r2) => r1.id === r2.id)); return (