Discord.js-Commando Error!

Project-name: gbot-projects

(node:2156) UnhandledPromiseRejectionWarning: TypeError: this.fetchUser is not a function

10:04 PM

at CommandoClient.once (/rbd/pnpm-volume/8dd68158-f907-4362-bdd8-62c9a549f765/node_modules/.registry.npmjs.org/discord.js-commando/0.10.0/node_modules/discord.js-commando/src/client.js:84:11)

10:04 PM

at Object.onceWrapper (events.js:277:13)

10:04 PM

at CommandoClient.emit (events.js:194:15)

10:04 PM

at WebSocketManager.triggerClientReady (/rbd/pnpm-volume/8dd68158-f907-4362-bdd8-62c9a549f765/node_modules/.registry.npmjs.org/discord.js/12.0.1/node_modules/discord.js/src/client/websocket/WebSocketManager.js:433:17)

10:04 PM

at WebSocketManager.checkShardsReady (/rbd/pnpm-volume/8dd68158-f907-4362-bdd8-62c9a549f765/node_modules/.registry.npmjs.org/discord.js/12.0.1/node_modules/discord.js/src/client/websocket/WebSocketManager.js:417:10)

10:04 PM

at WebSocketShard.shard.on.unavailableGuilds (/rbd/pnpm-volume/8dd68158-f907-4362-bdd8-62c9a549f765/node_modules/.registry.npmjs.org/discord.js/12.0.1/node_modules/discord.js/src/client/websocket/WebSocketManager.js:199:14)

10:04 PM

at WebSocketShard.emit (events.js:189:13)

10:04 PM

at WebSocketShard.checkReady (/rbd/pnpm-volume/8dd68158-f907-4362-bdd8-62c9a549f765/node_modules/.registry.npmjs.org/discord.js/12.0.1/node_modules/discord.js/src/client/websocket/WebSocketShard.js:466:12)

10:04 PM

at WebSocketShard.onPacket (/rbd/pnpm-volume/8dd68158-f907-4362-bdd8-62c9a549f765/node_modules/.registry.npmjs.org/discord.js/12.0.1/node_modules/discord.js/src/client/websocket/WebSocketShard.js:438:16)

10:04 PM

at WebSocketShard.onMessage (/rbd/pnpm-volume/8dd68158-f907-4362-bdd8-62c9a549f765/node_modules/.registry.npmjs.org/discord.js/12.0.1/node_modules/discord.js/src/client/websocket/WebSocketShard.js:293:10)

10:04 PM

(node:2156) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

10:04 PM

(node:2156) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

The error told you exactly what’s wrong: TypeError: this.fetchUser is not a function.
The proper way to fetch users is to use the Client’s UserManager via:

client.users.fetch(id);

:slight_smile: discord.js-commando module error

Did your project work a few minutes ago? Glitch is currently having a problem:
https://support.glitch.com/t/increased-loading-time-for-projects-apps/20206/2
https://status.glitch.com/

You wait for recovery. :coffee:

I found the source of the error: discord.js
The new version, v12.0.2, should be version 12.x, but the glitchte 12.x remains the error.

@HKG, @SepulturA, @balloon, please note that v12 has a lot of changes and new updates, including RichEmbed being replaced with MessageEmbed, check out the new update info at https://discordjs.guide/additional-info/changes-in-v12.html.