mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix eslint for opus
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user