Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

giving the error <ignoredRoles> option is not set up right! Please check it again to be an array in settings. #7

Open
typicalninja opened this issue Aug 5, 2020 · 4 comments

Comments

@typicalninja
Copy link

i tried to setup this in a discord js v12 but it would always give the error <ignoredRoles> option is not set up right! Please check it again to be an array in settings.

i will include my bots code here
https://hatebin.com/rlvmiycpon

this is similar to both bots

}})
 client.on('ready', () => {
  // Module Configuration Constructor
   antispam(client, {
        limitUntilWarn: 3, 
        limitUntilMuted: 5, 
        interval: 2000, 
        warningMessage: "if you don't stop from spamming, I'm going to punish you!", 
        muteMessage: "was muted since we don't like too much advertisement type people!", 
        maxDuplicatesWarning: 7,
        maxDuplicatesMute: 10, 
        ignoredRoles: ["owner"], 
        ignoredMembers: ["Axix#9144"],
        mutedRole: "muted", 
        timeMuted: 1000 * 600, 
        logChannel: "antispam-logs" 
      });
});
 
client.on('message', msg => {
  client.emit('checkMessage', msg);
});

even when I copyed it from the github code the error is same

@typicalninja
Copy link
Author

if i delte the options ignored mebers and roles it works

@mchccn
Copy link

mchccn commented Nov 20, 2020

maybe it can't find those roles?

@mchccn
Copy link

mchccn commented Nov 20, 2020

anyways this should be an easy fix, make a pull request

@mchccn
Copy link

mchccn commented Nov 20, 2020

ok i checked the code and you should just use new Array() instead... i dont know why an array literal doesnt work

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

No branches or pull requests

2 participants