bug fixed
All checks were successful
release-tag / release-image (push) Successful in 22s

This commit is contained in:
moriese 2025-01-13 01:55:47 +01:00
parent 3f7864be1b
commit ddb85f10d8
2 changed files with 1 additions and 1 deletions

0
mydb.sqlite Normal file
View File

View File

@ -72,7 +72,7 @@ export default class DiscordController extends EventEmitter {
client.on(Events.VoiceStateUpdate, async (oldState: VoiceState, newState: VoiceState) => {
// check if user joined a vc
if (!oldState.channelId && newState.channelId) {
if (!oldState.channelId && newState.channelId || oldState.channelId != newState.channelId) {
// check if right vc
if (newState.channelId === config.discord.vchannelIdForTwo || newState.channelId === config.discord.vchannelIdForThree || newState.channelId === config.discord.vchannelIdForFour || newState.channelId === config.discord.vchannelIdForGroup) {
const channel = newState.channel;