mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
switch to node-fetch
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
const Discord = require('../');
|
||||
const { token } = require('./auth');
|
||||
|
||||
const sharder = new Discord.ShardingManager(`${process.cwd()}/test/shard.js`, 4, false);
|
||||
const sharder = new Discord.ShardingManager(`${process.cwd()}/test/shard.js`, { token, respawn: false });
|
||||
|
||||
sharder.on('launch', shard => console.log(`launched ${shard.id}`));
|
||||
|
||||
sharder.spawn(4);
|
||||
sharder.spawn();
|
||||
|
||||
Reference in New Issue
Block a user