Skip to content

Commit 86cb24f

Browse files
committed
Remove voice chat threads support
1 parent 9a92e91 commit 86cb24f

File tree

2 files changed

+0
-237
lines changed

2 files changed

+0
-237
lines changed

src/bot.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import * as roleSelection from "./modules/roleSelection";
1818
import * as sudo from "./modules/sudo";
1919
import * as misc from "./modules/misc";
2020
import * as galleryChannels from "./modules/galleryChannels";
21-
import * as voiceThreads from "./modules/voiceThreads";
2221
import * as welcome from "./modules/welcome";
2322
import * as leaderboard from "./modules/leaderboard";
2423
import * as degrees from "./modules/degrees";
@@ -64,7 +63,6 @@ const commandProviders: CommandProvider[] = [
6463
sudo.provideCommands,
6564
misc.provideCommands,
6665
galleryChannels.provideCommands,
67-
voiceThreads.provideCommands,
6866
welcome.provideCommands,
6967
leaderboard.provideCommands,
7068
degrees.provideCommands,
@@ -328,27 +326,6 @@ client.on("messageCreate", async (message) => {
328326
await galleryChannels.handleMessage(message, prisma);
329327
});
330328

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-
352329
client.on("guildMemberAdd", async (member) => {
353330
await welcome.handleGuildJoin(member, prisma);
354331
});

src/modules/voiceThreads.ts

Lines changed: 0 additions & 214 deletions
This file was deleted.

0 commit comments

Comments
 (0)