The up-to-date guide
I'm currently working on a project, which requires me to build a discord-bot. I found a bit of resources, where there is a guide to follow how to build a discord-bots, etc. I found the official documentation and there was a reference to this guide. But I'm quite confused if the guide is indeed the most current/up-to-date one available, if it's not deprecated.
Here is the link to the guide I'm referring to:
https://discordjs.guide/creating-your-bot
I ask, because I followed the guide step by step and turned the code into typescript version, I unfortunately didn't get the result expected, which should be a simple message with the text from the bot. And I suppose the properties places and types might differ from the guide's version and current discord.js 14 version.
Basically my questions are:
1. So is that guide the most current version ?
2. Is there any other discord-official guide for bot creation ?
3. Does the guide refer to the brand-new version of discord.js ?
4. Is there any specific typescript-package for the types, that should be installed besides discord.js 14+ ? I saw that there is some, I also saw something called discordx, but it's documentation is crushed, so I didn't even install it.
Could anyone ask my questions, so I could start working on the problem-solving ? Thank you in advance.
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.




4 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 OP[email protected] and v22.14.0
We highly recommend you extend the
Client
structure properly instead of just attaching custom properties like .commands
to the regular discord.js Client
instance.
- Using typescript, you might want to consider casting or augmenting the module type
:guide: Creating Your Bot: Command handling - Loading command files
read moreThank you mate.