Depending on where you’re hosting your bot and what kind of provider you’re using, you might need to polyfill some of the node libs to make it work. For example on cloudflare workers you will need to polyfill node:util and node:url in order to work. When you come across something like this, use esbuild and esbuild-node-polyfill to polyfill it.