mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-03 23:36:35 +02:00
change bunker
This commit is contained in:
@@ -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é');
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user