Jisagi / Discord-guild-copy

A script to copy a discord guild/server
GNU General Public License v3.0
202 stars 106 forks source link

NewGuildAdminRole.permissions.has is not a function #39

Closed CeruleanFlare closed 5 years ago

CeruleanFlare commented 5 years ago

when I run node copy.js clone I get this: Language English selected. Translated by Jisagi Successfully logged in as PalBot#1690. Starting script Latest script version installed newGuildAdminRole.permissions.has is not a function

I just did npm install and also I have input a role ID into the settings.

CeruleanFlare commented 5 years ago

I also made sure that the role has admin

CeruleanFlare commented 5 years ago

ok i fixed it by deleting a line in the validator.js

Jisagi commented 5 years ago

Just randomly deleting files does NOT help solving the problem. You don't seem the have the latest version of discord.js installed. Do not install any npm package, but only run npm install. Deleting the validator.js just skips the check. Redownload the latest script version and re-run npm install and then try again.

Jisagi commented 5 years ago

I will be closing this issue, since there haven't been any new problems. If you still need help, feel free to reopen it.