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
Easiest will be with classes then u can extend upon ur current default structure
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.
works great .. have found a solution for my environment. Extending the standard is great
could you rephrase your question? what do you want to do?
pretty much the only structure you can overwrite is the client
i wanna overwrite the class or methods .. but with extend i can do this
which methods and why?
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
you're not talking about djs classes or methods?
no .. my own .. I've asked if I can build such an environment with discordjs
sorry if this was the wrong place
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