Joniii
Joniii
DIAdiscord.js - Imagine an app
Created by Joniii on 2/27/2025 in #djs-questions
Client.user is undefined even at the fired ready event in discord.js v14.18.0
Hello people! I was trying to log that my client is ready and with the name it is logged in, but it is just straight up undefined
export const data = eventFile({
name: "ready",
once: true,

execute: async (client, readyClient) => {
console.log(readyClient.user)
readyClient.logger.ready(`Logged in as ${readyClient.user.username}!`);
}
});
export const data = eventFile({
name: "ready",
once: true,

execute: async (client, readyClient) => {
console.log(readyClient.user)
readyClient.logger.ready(`Logged in as ${readyClient.user.username}!`);
}
});
this just evalutes to undefined but readyClient has properties on it.
24 replies