mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 08:24:42 +12: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",
|
||||
"dependencies": {
|
||||
"node-opus": "^0.1.13",
|
||||
"object.values": "^1.0.3",
|
||||
"superagent": "^1.5.0",
|
||||
"tweetnacl": "^0.14.3",
|
||||
|
@ -36,6 +35,9 @@
|
|||
"fs-extra": "^0.30.0",
|
||||
"jsdoc-parse": "^1.2.7"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"node-opus": "^0.1.13"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.12.7"
|
||||
},
|
||||
|
|
|
@ -6,6 +6,7 @@ class NodeOpusEngine extends OpusEngine {
|
|||
constructor(player) {
|
||||
super(player);
|
||||
try {
|
||||
// eslint-disable-next-line import/no-unresolved
|
||||
opus = require('node-opus');
|
||||
} catch (err) {
|
||||
throw err;
|
||||
|
|
Loading…
Reference in a new issue