discordjs / Commando

Official command framework for discord.js
Apache License 2.0
497 stars 243 forks source link

Incompatible with Discord.JS v13 #414

Closed tieb62 closed 2 years ago

tieb62 commented 2 years ago

When you update from Discord.JS v12 to Discord.JS v13, Commando stop working and says

<PROJECT_LOCATION>\node_modules\discord.js-commando\src\extensions\message.js:7
module.exports = Structures.extend('Message', Message => {
                            ^

TypeError: Cannot read property 'extend' of undefined
    at Object.<anonymous> (<PROJECT_LOCATION>\node_modules\discord.js-commando\src\extensions\message.js:7:29)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object.<anonymous> (<PROJECT_LOCATION>\node_modules\discord.js-commando\src\registry.js:5:25)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
dukeofsussex commented 2 years ago

Commando has been deprecated as of d.js v13, it's recommended to switch to Sapphire

tieb62 commented 2 years ago

But Commando is Official, created by the same author as Discord.JS Sapphire not

anishshobithps commented 2 years ago

@petittitouan Refer #413

tieb62 commented 2 years ago

Ok

KitsuneDev commented 2 years ago

I'm sorry to comment on a closed issue, but is there any compat layer or something to ease the migration? I've got quite a big Commando-based codebase (quite sure I'm not the only one), and porting everything would take a lot of time.