Change the version / bot type
Want to upgrade to a newer version of Node.js, switch to Python, or simply change your Discord bot's runtime environment? It's very easy on YorkHost: the Bot Language tab of the YorkHost Panel picks the matching Docker image for you.
Steps
- Log in to the YorkHost Panel
- Select your Discord Bot server
- Open the Bot Language tab (Game section): the Language and version block shows the version currently in use
- Choose the language (Node.js or Python), then the Version you want
- Click Apply, then confirm with Apply and reinstall: the server is reinstalled with the new version
The startup file and packages are reset to their defaults for the chosen language; your Discord token is kept.
The panel keeps your files during this change, but a reinstall is never trivial: make a backup (Backups tab) before changing version, especially if you work with manual uploads. If you use a Git repository, your files will be re-cloned automatically.
The Docker image is also shown in the Startup tab (Advanced section), Docker Image block.
If your bot uses native modules (better-sqlite3, canvas, sqlite3...), they must be recompiled for the new Node version. If you get a NODE_MODULE_VERSION / ERR_DLOPEN_FAILED error on restart, check Clean reinstall and list the modules in Native modules to compile, as explained in the hosting guide.
Available images
Here are the currently available images:
| Image | Language | Version |
|---|---|---|
| Node.js 24 | JavaScript / TypeScript | Node.js 24 (latest) |
| Node.js 22 | JavaScript / TypeScript | Node.js 22 (LTS) |
| Node.js 20 | JavaScript / TypeScript | Node.js 20 |
| Node.js 18 | JavaScript / TypeScript | Node.js 18 |
| Python 3 | Python | Python 3.x |
This list is non-exhaustive and may change over time. New versions are added regularly. If you need a specific version, contact our support team.
Which version should you choose?
Node.js
- Node.js 22 — Recommended for most projects. It's the current LTS (Long Term Support) version, stable and compatible with discord.js v14+.
- Node.js 24 — For users wanting the latest JavaScript features. Prefer this if your dependencies support it.
- Node.js 20 — A good alternative if you have dependencies requiring a slightly older version.
- Node.js 18 — Minimum version for discord.js v15. Only use this if your code requires it.
Python
- Python 3 — Compatible with discord.py, nextcord, pycord, and most Python Discord libraries.
discord.js compatibility
Make sure your version of discord.js is compatible with your chosen image:
| discord.js | Minimum Node.js |
|---|---|
| v14 | Node.js 16.11+ |
| v15 | Node.js 18+ |
Need help?
If you encounter any issues after changing versions, contact our support:
- Tickets: from your client area
- Discord: join our server for community help