AutoModerationRules : mentionRaidProtectionEnabled

Hello ! I'm creating automod rules, and for the mention spam I saw on discord the option to enable or not the mention raid detection. I searched on the documentation and I found mentionRaidProtectionEnabled option. Here is how I use it :
triggerMetadata: {
mentionTotalLimit: 5,
mentionRaidProtectionEnabled: true
},
triggerMetadata: {
mentionTotalLimit: 5,
mentionRaidProtectionEnabled: true
},
But my problem is that the option does nothing. When I make a console.log of the rule created the mentionRaidProtectionEnabled option does not appear. I have enabled it manually on discord and when I fetched the rule, the option does not appear too. Someone can help me ? Thank you Edit : I found it was because I haven't the last version
1 Reply
d.js toolkit
d.js toolkit13mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.