mirror of
https://github.com/Art-Portal/April.git
synced 2024-12-26 03:14:17 +01:00
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:
parent
c879f82391
commit
7b98a13c72
@ -1,7 +1,6 @@
|
||||
const { SlashCommandBuilder, SelectMenuBuilder, ActionRowBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('documents')
|
||||
.setDescription('Afficher des documents')
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -1,4 +1,4 @@
|
||||
const { SlashCommandBuilder, PermissionsBitField } = require('discord.js');
|
||||
const { SlashCommandBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
|
@ -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;
|
||||
|
@ -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');
|
||||
|
@ -1,5 +1,4 @@
|
||||
const { ContextMenuCommandBuilder, ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } = require('discord.js');
|
||||
const { sanctionChannelId } = require('../../config.json');
|
||||
|
||||
module.exports = {
|
||||
data: new ContextMenuCommandBuilder()
|
||||
|
@ -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()
|
||||
|
@ -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 = {
|
||||
|
@ -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 = {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user