change bunker

This commit is contained in:
VALOU3336
2024-02-14 21:09:17 +01:00
parent 7ba49bfd52
commit 79911788ed
+3 -3
View File
@@ -1,8 +1,8 @@
module.exports = {
name: 'bunker',
description: 'Activer le bot bunker',
async execute(interaction, client) {
const guild = interaction.guild;
async execute(message, args, client) {
const guild = message.guild;
const dangerousPermissions = [
'ADMINISTRATOR', 'VIEW_AUDIT_LOG', 'MANAGE_GUILD', 'MANAGE_ROLES', 'MANAGE_CHANNELS', 'KICK_MEMBERS', 'BAN_MEMBERS',
'MANAGE_NICKNAMES', 'MANAGE_EMOJIS_AND_STICKERS', 'MANAGE_WEBHOOKS', 'MANAGE_MESSAGES', 'EMBED_LINKS', 'ATTACH_FILES',
@@ -21,6 +21,6 @@ module.exports = {
await Promise.all(permissionOverwrites.map(overwrite => channel.permissionOverwrites.edit(overwrite.id, {})));
}));
await interaction.reply('Le serveur a bien été sécurisé');
await message.reply('Le serveur a bien été sécurisé');
},
};