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: just change the Docker image in your server settings.


Steps​

  1. Log in to the YorkHost Panel
  2. Select your Discord Bot server
  3. Go to the Servers Option tab (Server settings)
  4. In the Image field, select the image matching your desired version
  5. Click Save
  6. Reinstall your server to apply the change
warning

Reinstalling deletes files on the server. If you use a Git repository, your files will be re-cloned automatically. If you work with manual uploads, back up your files before reinstalling.

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