mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 17:52:55 +00:00
* Change node-opus methods * Try using crypto_secretbox(_open)_easy * Wrong open method name
This commit is contained in:
parent
33de408a70
commit
055775de2f
1 changed files with 2 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
try {
|
try {
|
||||||
const sodium = require('sodium');
|
const sodium = require('sodium');
|
||||||
module.exports = {
|
module.exports = {
|
||||||
open: sodium.api.crypto_secretbox_open,
|
open: sodium.api.crypto_secretbox_open_easy,
|
||||||
close: sodium.api.crypto_secretbox,
|
close: sodium.api.crypto_secretbox_easy,
|
||||||
};
|
};
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
const tweetnacl = require('tweetnacl');
|
const tweetnacl = require('tweetnacl');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue