Refactoring - v4.0.0
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user