@@ -18,7 +18,6 @@ import * as roleSelection from "./modules/roleSelection";
18
18
import * as sudo from "./modules/sudo" ;
19
19
import * as misc from "./modules/misc" ;
20
20
import * as galleryChannels from "./modules/galleryChannels" ;
21
- import * as voiceThreads from "./modules/voiceThreads" ;
22
21
import * as welcome from "./modules/welcome" ;
23
22
import * as leaderboard from "./modules/leaderboard" ;
24
23
import * as degrees from "./modules/degrees" ;
@@ -64,7 +63,6 @@ const commandProviders: CommandProvider[] = [
64
63
sudo . provideCommands ,
65
64
misc . provideCommands ,
66
65
galleryChannels . provideCommands ,
67
- voiceThreads . provideCommands ,
68
66
welcome . provideCommands ,
69
67
leaderboard . provideCommands ,
70
68
degrees . provideCommands ,
@@ -328,27 +326,6 @@ client.on("messageCreate", async (message) => {
328
326
await galleryChannels . handleMessage ( message , prisma ) ;
329
327
} ) ;
330
328
331
- client . on ( "voiceStateUpdate" , async ( oldState , newState ) => {
332
- if ( oldState . channelId === newState . channelId ) {
333
- return ;
334
- }
335
- if ( oldState . channelId !== null ) {
336
- try {
337
- await voiceThreads . handleVoiceLeave ( oldState , prisma ) ;
338
- } catch ( e ) {
339
- logger . error ( e , "Someone left a VC, GONE WRONG!!!:" ) ;
340
- }
341
- }
342
-
343
- if ( newState . channelId !== null ) {
344
- try {
345
- await voiceThreads . handleVoiceJoin ( newState , prisma ) ;
346
- } catch ( e ) {
347
- logger . error ( e , "Someone joined a VC, GONE WRONG!!!:" ) ;
348
- }
349
- }
350
- } ) ;
351
-
352
329
client . on ( "guildMemberAdd" , async ( member ) => {
353
330
await welcome . handleGuildJoin ( member , prisma ) ;
354
331
} ) ;
0 commit comments