Added more moderation commands and upgraded the 'audio' command

This commit is contained in:
ION606
2022-07-12 20:10:35 +03:00
parent 6ceb8cb381
commit 5a17e3811f
16 changed files with 881 additions and 114 deletions
+18
View File
@@ -0,0 +1,18 @@
module.exports = {
name: 'serverLock',
description: 'Lock ***ALL CHANNELS*** for everyone with the "everyone" role - ***SERVER OWNER ONLY. FOR EMERGENCY USE ONLY***',
execute(message, args, Discord, Client, bot) {
const guild = bot.guilds.cache.get(message.guild.id);
if (guild.ownerId != message.author.id) { return message.reply('Insufficient Permissions!'); }
message.guild.channels.cache.forEach(ch => {
channel.permissionOverwrites.edit(message.guild.roles.everyone.id, {
VIEW_CHANNEL: false,
SEND_MESSAGES: false,
READ_MESSAGE_HISTORY: false,
ATTACH_FILES: false
});
});
}
}