Haven
DIAdiscord.js - Imagine an app
•Created by Haven on 4/18/2024 in #djs-questions
fs.readdir, glob, fast-glob all won't match any files while using Typescript
Directory Setup:
Client.ts is the file from the snippet.
Here's my tsconfig
22 replies
DIAdiscord.js - Imagine an app
•Created by Haven on 4/17/2024 in #djs-questions
Extending Client and making Interaction.client use that new Client
As said in the guide, I have extended my Client class, no problems there. Though, I want to use
interaction.client
in my commands, yet that still refers to the old class. Forgive me, I'm a little new to JS and absolutely not sure how to go about this, am I thinking of it wrong even? Should I be passing client in my command handler? Should I just use imports? I would really like to avoid the imports, but I'm not against it. What is the right choice here, I'm almost positive I cannot be the first to ask this question, but a search yields no results here.6 replies