mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 11:40:41 +00:00
fix eslint for opus
This commit is contained in:
parent
ccf513a2fc
commit
7ba37a3511
3 changed files with 5 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -26,7 +26,6 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/hydrabolt/discord.js#readme",
|
"homepage": "https://github.com/hydrabolt/discord.js#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"node-opus": "^0.1.13",
|
|
||||||
"object.values": "^1.0.3",
|
"object.values": "^1.0.3",
|
||||||
"superagent": "^1.5.0",
|
"superagent": "^1.5.0",
|
||||||
"tweetnacl": "^0.14.3",
|
"tweetnacl": "^0.14.3",
|
||||||
|
|
@ -36,6 +35,9 @@
|
||||||
"fs-extra": "^0.30.0",
|
"fs-extra": "^0.30.0",
|
||||||
"jsdoc-parse": "^1.2.7"
|
"jsdoc-parse": "^1.2.7"
|
||||||
},
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"node-opus": "^0.1.13"
|
||||||
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.12.7"
|
"node": ">=0.12.7"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ class NodeOpusEngine extends OpusEngine {
|
||||||
constructor(player) {
|
constructor(player) {
|
||||||
super(player);
|
super(player);
|
||||||
try {
|
try {
|
||||||
|
// eslint-disable-next-line import/no-unresolved
|
||||||
opus = require('node-opus');
|
opus = require('node-opus');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw err;
|
throw err;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue