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

TypeError: Cannot read property 'extend' of undefined #416

Closed
start2018 opened this issue Aug 18, 2021 · 3 comments
Closed

TypeError: Cannot read property 'extend' of undefined #416

start2018 opened this issue Aug 18, 2021 · 3 comments

Comments

@start2018
Copy link

module.exports = Structures.extend('Message', Message => {
^

TypeError: Cannot read property 'extend' of undefined
at Object. (D:\tools\magicjipange-master\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. (D:\tools\magicjipange-master\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)

already installed discord.js and this error happens.
Every modules are up-to-date. Nodejs version :16.7.0 / NPM version: 7.20.3

@MarcusOtter
Copy link

MarcusOtter commented Aug 19, 2021

Also getting this.
EDIT: Seems intentional, this is deprecated as of DiscordJS 13.0
The authors of this repository should make that clear.

Read:
#414
#413
discordjs/guide#711

@start2018
Copy link
Author

Downgraded to [email protected] . Works like a charm.

@ghost
Copy link

ghost commented Aug 27, 2021

Commando is deprecated and doesn't work with Discord.js v13.

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

2 participants