mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
refactor: use the node: protocol (#6710)
This commit is contained in:
@@ -37,7 +37,7 @@ class Client extends BaseClient {
|
||||
constructor(options) {
|
||||
super(options);
|
||||
|
||||
const data = require('worker_threads').workerData ?? process.env;
|
||||
const data = require('node:worker_threads').workerData ?? process.env;
|
||||
const defaults = Options.createDefault();
|
||||
|
||||
if (this.options.shards === defaults.shards) {
|
||||
|
||||
Reference in New Issue
Block a user