Files
discordeno/examples/nodejs/events/ready.js
Jonathan Ho d04a040f28 Setup turborepo (#2610)
* chore: BREAKING move to monorepo structure

* chore: setup turborepo
2022-12-01 01:59:02 +08:00

8 lines
266 B
JavaScript

module.exports = async (client, payload) => {
client.user = client.users.forge(payload.user);
if (payload.shardId === client.gateway.lastShardId) {
//All Shards are ready
console.log("Successfully connected to the gateway as " + client.user.tag);
}
};