Files
discordeno/examples/nodejs/events/ready.js
2023-04-01 02:46:46 +02:00

8 lines
264 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)
}
}