in src/listeners/ready.ts [4:15]
export default (client: Client): void => {
client.on("ready", async () => {
if (!client.user || !client.application) {
return;
}
// Global command registration, takes up to an hour to register.
await client.application.commands.set(Commands);
console.log(`${client.user.username} is online`);
});
};