20 Replies
- What's your exact discord.js
npm list discord.js and node node -v version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅ Marked as resolved by OPelaborate
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View

Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
i'm started using discord.js like week ago, but didn't found any information about disnake cog alternatives in d.js
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
oh wait, that's my bad
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
ohhh, sorry my bad
my English is very bad
and not only English 🧠
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
soo... disnake cogs is like modules. just simple code separation, so you don't will gonna have 6k+ lines of code in one file
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
split the code into separate files
from what i see on the disnake docs (i dont use python, thus ive never used cogs before)...it just seems like some python-ism
you can definetly replicate your own version of this. the first example of a "cog" is a welcome message. DJS has a similar event system so you can do the same thing as in the cog with a
client.on("guildMemberAdd", (member) => {})
but the process for doing so is up to you, rather than built into DJS
for the most part, DJS is just the tools to do things. actual command and/or file structure is up to youThank you, but cogs is method of code organization
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
I should explain that in first message of the post
ya, no, no such things as cogs exists in DJS. as i said, the file structure and organization is up to you
okey, thank you everyone for helping me and sorry for my stupid brain :3