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:
Danial Raza
2025-01-18 19:58:28 +01:00
committed by GitHub
parent c6e16c3675
commit ad6b006d35
287 changed files with 1183 additions and 1137 deletions

View File

@@ -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}`));