Adding a fix for when new calls are starting in voice channels that haven't been registered yet
This commit is contained in:
parent
6c6c2655f2
commit
81f91df8ac
@ -109,6 +109,9 @@ client.on(Events.VoiceStateUpdate, async (oldState, newState) => {
|
||||
|
||||
logger.info(`Channel Join Detected ${newState.guild.id} - ${newState.channelId} - ${newState.member.id}`)
|
||||
|
||||
//TODO Nothing should happen after this if the channel fails to register
|
||||
await sqlutil.registerChannelIfMissing(newState.channel.id, newState.guild.id, newState.channel.name)
|
||||
|
||||
var existingCallID = await sqlutil.inCall(newState.guild.id, newState.channelId)
|
||||
|
||||
logger.info(`Existing call ID ${existingCallID}`)
|
||||
|
Loading…
Reference in New Issue
Block a user