Skip to main content

Host your Discord bot 24/7 on a reliable VPS with no downtime.

See our VPS

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​

  1. Log in to the YorkHost Panel
  2. Select your Discord Bot server
  3. Open the Bot Language tab (Game section): the Language and version block shows the version currently in use
  4. Choose the language (Node.js or Python), then the Version you want
  5. 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.

warning

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.

Native modules after a version change

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:

ImageLanguageVersion
Node.js 24JavaScript / TypeScriptNode.js 24 (latest)
Node.js 22JavaScript / TypeScriptNode.js 22 (LTS)
Node.js 20JavaScript / TypeScriptNode.js 20
Node.js 18JavaScript / TypeScriptNode.js 18
Python 3PythonPython 3.x
info

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.jsMinimum Node.js
v14Node.js 16.11+
v15Node.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