Parent Directory
|
Revision Log
Updated anti-raid systems
1 | rakin | 39 | const MessageEmbed = require('../src/MessageEmbed'); |
2 | const { version } = require('./help'); | ||
3 | const { lockAll } = require('./lockall'); | ||
4 | |||
5 | module.exports = { | ||
6 | async handle(msg) { | ||
7 | let role = msg.guild.roles.everyone; | ||
8 | let channels = msg.guild.channels.cache.filter(channel => app.config.get('raid').excluded.indexOf(channel.id) === -1 && app.config.get('raid').excluded.indexOf(channel.parent?.id) === -1 && channel.type === 'GUILD_TEXT'); | ||
9 | |||
10 | await lockAll(role, channels, true); | ||
11 | } | ||
12 | }; |
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |