diff --git a/commands/antiraid/bunker.js b/commands/antiraid/bunker.js index 2c5e873..1833cb5 100644 --- a/commands/antiraid/bunker.js +++ b/commands/antiraid/bunker.js @@ -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é'); }, };