mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
refactor: remove error-silencing try/catch on event handler imports (#5542)
This commit is contained in:
@@ -5,9 +5,7 @@ const { WSEvents } = require('../../../util/Constants');
|
|||||||
const handlers = {};
|
const handlers = {};
|
||||||
|
|
||||||
for (const name of Object.keys(WSEvents)) {
|
for (const name of Object.keys(WSEvents)) {
|
||||||
try {
|
handlers[name] = require(`./${name}.js`);
|
||||||
handlers[name] = require(`./${name}.js`);
|
|
||||||
} catch {} // eslint-disable-line no-empty
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = handlers;
|
module.exports = handlers;
|
||||||
|
|||||||
Reference in New Issue
Block a user