Files
discordeno/examples/nodejs/events/ready.js
Awesome Stickz 80eabe5f44 Emoji rest methods (node-migration-clean) (#2713)
* feat: all emoji rest methods

* Fix code style issues with ESLint

Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
2023-01-05 15:16:20 -06:00

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