mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
* Change node-opus methods * Try using crypto_secretbox(_open)_easy * Wrong open method name
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
try {
|
||||
const sodium = require('sodium');
|
||||
module.exports = {
|
||||
open: sodium.api.crypto_secretbox_open,
|
||||
close: sodium.api.crypto_secretbox,
|
||||
open: sodium.api.crypto_secretbox_open_easy,
|
||||
close: sodium.api.crypto_secretbox_easy,
|
||||
};
|
||||
} catch (err) {
|
||||
const tweetnacl = require('tweetnacl');
|
||||
|
||||
Reference in New Issue
Block a user