fix: voice connection

This commit is contained in:
Elysia
2024-07-25 10:50:46 +07:00
parent eb96d562ba
commit c193116100
4 changed files with 30 additions and 18 deletions

View File

@@ -18,7 +18,17 @@ const libs = {
}),
};
exports.methods = {};
function NoLib() {
throw new Error(
'Cannot play audio as no valid encryption package is installed.\n- Install sodium, libsodium-wrappers, or tweetnacl.',
);
}
exports.methods = {
open: NoLib,
close: NoLib,
random: NoLib,
};
(async () => {
for (const libName of Object.keys(libs)) {