Discord Overwrite environment

Hey all.. I've something special - maybe I'm trying to build a symfony like environment where I have the standard where the default bot (ready to run) is in and a custom folder where I can overwrite the structure or extend it. Is this possible or has someone done this?
11 Replies
d.js toolkit
d.js toolkit•5w ago
Velistina
Velistina•5w ago
Easiest will be with classes then u can extend upon ur current default structure
Velistina
Velistina•5w ago
MDN Web Docs
Classes - JavaScript | MDN
Classes are a template for creating objects. They encapsulate data with code to work on that data. Classes in JS are built on prototypes but also have some syntax and semantics that are unique to classes.
Spctr
SpctrOP•5w ago
works great .. have found a solution for my environment. Extending the standard is great
Amgelo
Amgelo•5w ago
could you rephrase your question? what do you want to do? pretty much the only structure you can overwrite is the client
Spctr
SpctrOP•5w ago
i wanna overwrite the class or methods .. but with extend i can do this
Amgelo
Amgelo•5w ago
which methods and why?
Spctr
SpctrOP•5w ago
the methods inside my classes I'm building a symfony like environment with a standard code base where I can customize it for a customer
Amgelo
Amgelo•4w ago
you're not talking about djs classes or methods?
Spctr
SpctrOP•4w ago
no .. my own .. I've asked if I can build such an environment with discordjs sorry if this was the wrong place
Amgelo
Amgelo•4w ago
I think there's a misunderstanding though, djs only handles the discord part it's not a runtime, you aren't programming in djs the runtime is node (or bun, deno, whatever you use), and the language is javascript that's where you should be looking for on how to extend objects this is MDN for instance which is a documentation of frontend javascript and other web-related technologies though classes apply to both frontend and backend so there's no issue with that

Did you find this page helpful?