diff --git a/commands/misc/document.js b/commands/misc/document.js index 0e7ed1d..462ae05 100644 --- a/commands/misc/document.js +++ b/commands/misc/document.js @@ -1,7 +1,6 @@ const { SlashCommandBuilder, SelectMenuBuilder, ActionRowBuilder } = require('discord.js'); module.exports = { - data: new SlashCommandBuilder() .setName('documents') .setDescription('Afficher des documents') diff --git a/commands/misc/lovecalc.js b/commands/misc/lovecalc.js index d8fdc4b..7cb916c 100644 --- a/commands/misc/lovecalc.js +++ b/commands/misc/lovecalc.js @@ -1,5 +1,4 @@ -const { SlashCommandBuilder } = require('@discordjs/builders'); -const { MessageEmbed, EmbedBuilder } = require('discord.js') +const { MessageEmbed, EmbedBuilder, SlashCommandBuilder } = require('discord.js') module.exports = { data: new SlashCommandBuilder() diff --git a/commands/misc/ping.js b/commands/misc/ping.js index fb251ac..2f480a0 100644 --- a/commands/misc/ping.js +++ b/commands/misc/ping.js @@ -1,5 +1,4 @@ -const { SlashCommandBuilder } = require('discord.js'); -const { ActionRowBuilder, EmbedBuilder, ButtonBuilder, ButtonStyle } = require('discord.js') +const { SlashCommandBuilder, ActionRowBuilder, EmbedBuilder, ButtonBuilder, ButtonStyle } = require('discord.js') module.exports = { data: new SlashCommandBuilder() diff --git a/commands/misc/say.js b/commands/misc/say.js index a997a33..14a2b89 100644 --- a/commands/misc/say.js +++ b/commands/misc/say.js @@ -1,4 +1,4 @@ -const { SlashCommandBuilder, PermissionsBitField } = require('discord.js'); +const { SlashCommandBuilder } = require('discord.js'); module.exports = { data: new SlashCommandBuilder() diff --git a/commands/misc/userinfocontextmenu.js b/commands/misc/userinfocontextmenu.js index 5091571..ab755fd 100644 --- a/commands/misc/userinfocontextmenu.js +++ b/commands/misc/userinfocontextmenu.js @@ -4,6 +4,7 @@ module.exports = { data: new ContextMenuCommandBuilder() .setName('UserInfo') .setType(2), + async execute(interaction, client) { const user = interaction.targetUser; const member = interaction.targetMember; diff --git a/commands/moderation/ban.js b/commands/moderation/ban.js index 356f0f4..fb801aa 100644 --- a/commands/moderation/ban.js +++ b/commands/moderation/ban.js @@ -1,5 +1,4 @@ -const { SlashCommandBuilder } = require('@discordjs/builders'); -const { EmbedBuilder, ButtonBuilder, ActionRowBuilder } = require('discord.js'); +const { EmbedBuilder, SlashCommandBuilder } = require('discord.js'); const { sanctionChannelId } = require('../../config.json'); module.exports = { @@ -21,8 +20,6 @@ module.exports = { .setRequired(true)), async execute(interaction, client) { - // if(!interaction.member.permissions.has(0x4)) return interaction.reply({content: `Vous n'avez pas la permisssion \`BAN_MEMBERS\` pour effectuer cette commande.`, ephemeral: true}); - const user = interaction.options.getUser('user'); const member = interaction.options.getMember('user'); const reason = interaction.options.getString('reason'); diff --git a/commands/moderation/banContextMenu.js b/commands/moderation/banContextMenu.js index 2f511bf..318ad6c 100644 --- a/commands/moderation/banContextMenu.js +++ b/commands/moderation/banContextMenu.js @@ -1,5 +1,4 @@ const { ContextMenuCommandBuilder, ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } = require('discord.js'); -const { sanctionChannelId } = require('../../config.json'); module.exports = { data: new ContextMenuCommandBuilder() diff --git a/commands/moderation/clear.js b/commands/moderation/clear.js index 6561eb2..cd74594 100644 --- a/commands/moderation/clear.js +++ b/commands/moderation/clear.js @@ -1,5 +1,4 @@ -const { SlashCommandBuilder } = require('@discordjs/builders'); -const { EmbedBuilder, ButtonBuilder, ActionRowBuilder } = require('discord.js'); +const { SlashCommandBuilder } = require('discord.js'); module.exports = { data: new SlashCommandBuilder() diff --git a/commands/moderation/kick.js b/commands/moderation/kick.js index 4e2338d..100c660 100644 --- a/commands/moderation/kick.js +++ b/commands/moderation/kick.js @@ -1,5 +1,4 @@ -const { SlashCommandBuilder } = require('@discordjs/builders'); -const { EmbedBuilder, ButtonBuilder, ActionRowBuilder } = require('discord.js'); +const { EmbedBuilder, SlashCommandBuilder } = require('discord.js'); const { sanctionChannelId } = require('../../config.json'); module.exports = { diff --git a/commands/moderation/mute.js b/commands/moderation/mute.js index 44bb817..6d0f645 100644 --- a/commands/moderation/mute.js +++ b/commands/moderation/mute.js @@ -1,5 +1,4 @@ -const { SlashCommandBuilder } = require('@discordjs/builders'); -const { EmbedBuilder, ButtonBuilder, ActionRowBuilder } = require('discord.js'); +const { EmbedBuilder, SlashCommandBuilder } = require('discord.js'); const { sanctionChannelId } = require('../../config.json'); module.exports = { diff --git a/commands/setup/setupcommands/moderation.js b/commands/setup/setupcommands/moderation.js index c7ce986..274057d 100644 --- a/commands/setup/setupcommands/moderation.js +++ b/commands/setup/setupcommands/moderation.js @@ -1,4 +1,4 @@ -const { EmbedBuilder, SelectMenuBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js'); +const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js'); module.exports = { async execute(interaction, client) {