GLITCH discord.js 更新到 12.1.1 错误?

GLITCH discord.js update to 12.1.1 error?

/rbd/pnpm-volume/2811df58-f303-40d7-8428-560fac0ef517/node_modules/.registry.npmjs.org/discord.js/12.1.1/node_modules/discord.js/src/client/Client.js:41
    } catch {
            ^
SyntaxError: Unexpected token {
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:617:28)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/rbd/pnpm-volume/2811df58-f303-40d7-8428-560fac0ef517/node_modules/.registry.npmjs.org/discord.js/12.1.1/node_modules/discord.js/src/index.js:8:11)

当我将 my bot's discord.js 升级到 12.1.1 时,它对我说了这个。它通常是 运行 discord.js 11.4.2,但我的机器人并不完美 运行。请帮助我。

如果您刚刚将代码从 Discord.js 11.4.2 升级到 12 及更高版本,您应该检查 Update Guide 以确保没有任何 deprecated/broken代码。