Corrected deprecated imports (mainly SlashCommandBuilder that used to be imported from @discordjs/builder in some commands, now is from discord.js)

Removed unintended line breaks
This commit is contained in:
ninjdai1 2022-11-11 09:20:22 +01:00
parent c879f82391
commit 7b98a13c72
11 changed files with 9 additions and 18 deletions

View File

@ -1,7 +1,6 @@
const { SlashCommandBuilder, SelectMenuBuilder, ActionRowBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('documents')
.setDescription('Afficher des documents')

View File

@ -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()

View File

@ -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()

View File

@ -1,4 +1,4 @@
const { SlashCommandBuilder, PermissionsBitField } = require('discord.js');
const { SlashCommandBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()

View File

@ -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;

View File

@ -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');

View File

@ -1,5 +1,4 @@
const { ContextMenuCommandBuilder, ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } = require('discord.js');
const { sanctionChannelId } = require('../../config.json');
module.exports = {
data: new ContextMenuCommandBuilder()

View File

@ -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()

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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) {