Skip to content
This repository has been archived by the owner on Dec 24, 2021. It is now read-only.

Incompatible with Discord.JS v13 #414

Closed
tieb62 opened this issue Aug 7, 2021 · 5 comments
Closed

Incompatible with Discord.JS v13 #414

tieb62 opened this issue Aug 7, 2021 · 5 comments

Comments

@tieb62
Copy link

tieb62 commented Aug 7, 2021

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
Copy link
Contributor

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

@tieb62
Copy link
Author

tieb62 commented Aug 7, 2021

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

@anishshobithps
Copy link

@petittitouan Refer #413

@tieb62
Copy link
Author

tieb62 commented Aug 7, 2021

Ok

@tieb62 tieb62 closed this as completed Aug 7, 2021
@KitsuneDev
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants