mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
refactor: standardize export style to named exports (#10630)
* refactor: standardize export style to named exports * refactor: export enums directly * fix: update importing in generateRequires script * fix: missed places * feat: add eslint rule * fix: ci errors * fix: leftovers * fix: remove accidentally readded interaction response * fix: remove interaction response export * fix: correct collection export * chore: add another eslint rule --------- Co-authored-by: almeidx <github@almeidx.dev> Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
const process = require('node:process');
|
||||
const { token } = require('./auth');
|
||||
const Discord = require('../src');
|
||||
const { ShardingManager } = require('../src');
|
||||
|
||||
const sharder = new Discord.ShardingManager(`${process.cwd()}/test/shard.js`, { token, respawn: false });
|
||||
const sharder = new ShardingManager(`${process.cwd()}/test/shard.js`, { token, respawn: false });
|
||||
|
||||
sharder.on('launch', shard => console.log(`launched ${shard.id}`));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user