Michael-J-Scofield / discord-anti-spam

A simple discord anti spam node.js module to prevent spam on your discord server
MIT License
146 stars 53 forks source link

Work with discordjs v13 ? #133

Closed CeebDev closed 3 years ago

CeebDev commented 3 years ago

I am searching for a antispam for my new bot.

Did this one works with discordjs v13 ?

Thanks

Scraayp commented 3 years ago

It's in the work.

For now I'm waiting for them to fix the most bugs.

Kief5555 commented 3 years ago

Not working for me, terminal: node_modules/discord-anti-spam/index.js:497


                if (options.ignoredPermissions.some((permission) => member.hasPermission(permission))) return false
                                                                           ^

TypeError: member.hasPermission is not a function```
KingTeox commented 3 years ago

@Kief5555 https://discord.js.org/#/docs/main/stable/class/GuildMember?scrollTo=permissions

Scraayp commented 3 years ago

As I said. Discord.js v13 compability will be aviable at v2.6.0.

kc1nn4y commented 3 years ago

When is 2.6 being released

Kief5555 commented 3 years ago

@Kief5555 https://discord.js.org/#/docs/main/stable/class/GuildMember?scrollTo=permissions

Yep, Ok. permissions.has in v13

Scraayp commented 3 years ago

Now only publish to npm! Could take up a day or 2.

kc1nn4y commented 3 years ago

Niceee

Kief5555 commented 3 years ago

Lets go!