sending message when shard starts

Error [ShardingInProcess]: Shards are still being spawned.
2 Replies
d.js toolkit
d.js toolkit2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Soap
SoapOP2y ago
node 20.2
const id = "yes";
return client.shard.broadcastEval(async (c, { channelId }) => {
const channel = c.channels.cache.get(channelId);
if (channel) {
channel.send(`:enable: Shard ${shardID + 1}/3 has been launched!`);
return true;
}
return false;
}, { context: { channelId: id } })
.then(console.log);
},
};
const id = "yes";
return client.shard.broadcastEval(async (c, { channelId }) => {
const channel = c.channels.cache.get(channelId);
if (channel) {
channel.send(`:enable: Shard ${shardID + 1}/3 has been launched!`);
return true;
}
return false;
}, { context: { channelId: id } })
.then(console.log);
},
};
this trys to get sent whenever a shard is started yeah, i used that but rip i wish you could just use the bot wish
Want results from more Discord servers?
Add your server