mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +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 {
|
||||
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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue