From dc166dd2862e0e1702bd822930b4645a50bddbee Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Thu, 8 Feb 2024 20:30:50 +0100 Subject: [PATCH] set minimum required custom vc permissions --- events/channels/voiceStateUpdate.js | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/events/channels/voiceStateUpdate.js b/events/channels/voiceStateUpdate.js index ae449eb..51c262b 100644 --- a/events/channels/voiceStateUpdate.js +++ b/events/channels/voiceStateUpdate.js @@ -2,21 +2,20 @@ import { ChannelType, Events, PermissionFlagsBits } from 'discord.js'; import { VoiceChannel } from '../../database.js'; const vcPermissionOverwrites = [ - PermissionFlagsBits.ManageRoles, - PermissionFlagsBits.ManageChannels, - PermissionFlagsBits.ViewChannel, - PermissionFlagsBits.ModerateMembers, - PermissionFlagsBits.SendMessages, - PermissionFlagsBits.SendMessagesInThreads, - PermissionFlagsBits.ManageMessages, PermissionFlagsBits.ReadMessageHistory, - PermissionFlagsBits.AddReactions, - PermissionFlagsBits.Connect, - PermissionFlagsBits.Speak, - PermissionFlagsBits.MuteMembers, + PermissionFlagsBits.PrioritySpeaker, + PermissionFlagsBits.ManageMessages, + PermissionFlagsBits.ManageChannels, PermissionFlagsBits.DeafenMembers, + PermissionFlagsBits.SendMessages, + PermissionFlagsBits.ViewChannel, + PermissionFlagsBits.MuteMembers, PermissionFlagsBits.MoveMembers, - PermissionFlagsBits.UseVAD + PermissionFlagsBits.ManageRoles, + PermissionFlagsBits.Connect, + PermissionFlagsBits.Stream, + PermissionFlagsBits.UseVAD, + PermissionFlagsBits.Speak ]; const getChannel = async (member, channels) => {