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

d.js v12 broke backup command #11

Closed
shoxie opened this issue Apr 6, 2020 · 1 comment
Closed

d.js v12 broke backup command #11

shoxie opened this issue Apr 6, 2020 · 1 comment

Comments

@shoxie
Copy link

shoxie commented Apr 6, 2020

Like the title, i think d.j2 v12 somehow return TypeError: Cannot read property 'hasOwnProperty' of undefined on backup command. Any solution yet ?

@shoxie
Copy link
Author

shoxie commented Apr 6, 2020

nevermind i found the solution

For those who are using D.js 11: change anything like this
message.guild.channels.create(ch.name, ch.type, ch.permissionOverwrites,) to message.guild.channels.create(ch.name, {type: ch.type,permissionOverwrites: ch.permissionOverwrites})

For those who are using D.js 12: change all Collection to Manager which is cache method then replace the same as D.js 11 method

@shoxie shoxie closed this as completed Apr 6, 2020
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

1 participant