Files
discordeno/template/nodejs/events/ready.js
meister03 a9938b1fcf fix: nodejs guide template. (#2433)
Co-authored-by: New Author Name <email@address.com>
2022-09-07 14:00:29 -05: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);
}
};