From e321795a022f7aa8408d9ee3ceb5d85ef812381f Mon Sep 17 00:00:00 2001 From: Aaron Tulino Date: Tue, 17 Feb 2026 10:15:20 -0700 Subject: [PATCH] VoiceJoinMessages: Add option to ignore friends (#785) Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com> --- src/equicordplugins/voiceJoinMessages/index.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/equicordplugins/voiceJoinMessages/index.ts b/src/equicordplugins/voiceJoinMessages/index.ts index ae321763b..12824ab91 100644 --- a/src/equicordplugins/voiceJoinMessages/index.ts +++ b/src/equicordplugins/voiceJoinMessages/index.ts @@ -45,6 +45,11 @@ const settings = definePluginSettings({ description: "Comma or space separated list of friends' user IDs you want to recieve join messages from", default: "" }, + ignoredFriends: { + type: OptionType.STRING, + description: "Comma or space separated list of friends' user IDs you do NOT want to recieve join messages from", + default: "" + }, ignoreBlockedUsers: { type: OptionType.BOOLEAN, description: "Do not send messages about blocked users joining/leaving/moving voice channels", @@ -89,9 +94,11 @@ function sendVoiceStatusMessage(channelId: string, content: string, userId: stri function isFriendAllowlisted(friendId: string) { if (!RelationshipStore.isFriend(friendId)) return false; - const list = settings.store.allowedFriends.split(",").join(" ").split(" ").filter(i => i.length > 0); - if (list.join(" ").length < 1) return true; - return list.includes(friendId); + const ignoreList = settings.store.ignoredFriends.split(",").join(" ").split(" ").filter(i => i.length > 0); + if (ignoreList.includes(friendId)) return false; + const allowList = settings.store.allowedFriends.split(",").join(" ").split(" ").filter(i => i.length > 0); + if (allowList.join(" ").length < 1) return true; + return allowList.includes(friendId); } // Blatantly stolen from VcNarrator plugin