This commit is contained in:
Louis Mazin 2025-07-01 16:06:24 +02:00
parent b49eb11914
commit f836533cf8

View File

@ -4,7 +4,7 @@ const path = require('node:path');
const deploy = require('./deploy_command.js')
const update = require('./displayer.js');
const clean = require('./cleaner.js');
const { Client, GatewayIntentBits, Collection, Events } = require('discord.js');
const { Client, GatewayIntentBits, Collection, Events, Partials } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.GuildMembers,GatewayIntentBits.GuildMessages,GatewayIntentBits.GuildMessageReactions,GatewayIntentBits.DirectMessageReactions,GatewayIntentBits.MessageContent] });
const args = process.argv;
@ -94,7 +94,6 @@ client.on(Events.MessageReactionAdd, async (reaction, user) => {
});
client.on(Events.InteractionCreate, async interaction => {
console.log(interaction);
if (!interaction.isChatInputCommand()) return;
const command = interaction.client.commands.get(interaction.commandName);