Refactoring - v4.0.0

This commit is contained in:
2024-11-16 16:02:58 +01:00
parent 94b9ef966d
commit 0e50e3a101
4 changed files with 50 additions and 60 deletions
+5 -9
View File
@@ -1,14 +1,10 @@
const { getVoiceConnection } = require("@discordjs/voice");
const {getVoiceConnection} = require("@discordjs/voice");
import {stopMethodOptions} from "../Utils/Options/StopMethodOptions";
export function stopAudio({
GuildID
}: stopMethodOptions) {
try {
let audioConnection = getVoiceConnection(GuildID);
audioConnection.destroy();
} catch (err) {
console.error(err);
}
GuildID
}: stopMethodOptions) {
let audioConnection = getVoiceConnection(GuildID);
audioConnection.destroy();
}