LukeZ
LukeZ
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by LukeZ on 8/12/2024 in #djs-questions
How to setup constants/variables outside of module.exports ?
No description
6 replies
DIAdiscord.js - Imagine an app
Created by LukeZ on 7/14/2024 in #djs-questions
TS Error: The property "isReady" / "token" is not available for the "myClient" type.
I've made my own TS Client class which extends djs' Client class but it keeps giving me an error which has to do with the Client class from djs I suppose. Any ideas how to fix this?
import { Client } from "@discordjs/core";

export class myClient extends Client {
async myFunction(...) {
if (!(this.isReady() || this.token))
// The property "isReady" / "token" is not available for the "myClient" type.
}
}
import { Client } from "@discordjs/core";

export class myClient extends Client {
async myFunction(...) {
if (!(this.isReady() || this.token))
// The property "isReady" / "token" is not available for the "myClient" type.
}
}
27 replies
DIAdiscord.js - Imagine an app
Created by LukeZ on 6/7/2024 in #djs-questions
Why can't I import (require) something from discord.js ?
No description
3 replies