#property commands does not exist on type Client
1 messages · Page 1 of 1 (latest)
hello
nope
How are you?
good wbu
Pretty fine, still looking for a way to send a message to a specific channel but yeah I work hard
And u, what's ur doing here
Please keep the thread on-topic
It's worth a read, I'd recommend reading that before working with anything typescript
is that true?
kk np
Simply put, yes
alr
so what exaclty should I do to avoid this error
make a class
that s different
from like the imports
kinda hard to explain since english is my second language
what's ur first langage bud
romanian
lol
It's okay
Make a class which extends/implements the client class
And call its constructor
Make sure to add the "commands" property in it
declare module "discord.js" {
export interface Client {
commands: Collection<unknown, any>
}
}
this
??
No no
Import Client
Make a new class
CommandClient maybe
And make it inherit Client
That's only a type
Bro, I'm talking about a class name
Stop, please.
