From 61798a6067a54c4e83948178bb5dc6423675b38d Mon Sep 17 00:00:00 2001 From: Nemo Date: Fri, 12 Nov 2021 13:05:35 +0100 Subject: [PATCH] minor file changes --- commands/poll.js | 2 +- events/interactionCreate.js | 5 ----- index.js | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/commands/poll.js b/commands/poll.js index dffd2f4..7cf4454 100644 --- a/commands/poll.js +++ b/commands/poll.js @@ -1,5 +1,5 @@ - const { SlashCommandBuilder, codeBlock } = require('@discordjs/builders'); +const { userMention } = require("@discordjs/builders"); module.exports = { data: new SlashCommandBuilder() diff --git a/events/interactionCreate.js b/events/interactionCreate.js index 27d4f18..5a06773 100644 --- a/events/interactionCreate.js +++ b/events/interactionCreate.js @@ -1,11 +1,6 @@ module.exports = { name: 'interactionCreate', async execute(interaction) { - if(interaction.isButton()){ - console.log(interaction); - interaction.reply({ content: `${interaction.user.tag} clicked me`, ephemeral : true }); - } - if (!interaction.isCommand()) return; diff --git a/index.js b/index.js index 395d74c..056eb47 100644 --- a/index.js +++ b/index.js @@ -10,7 +10,7 @@ const client = new Client({ intents: [Intents.FLAGS.GUILDS] }); client.commands = new Collection(); const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js')); -for (const file of commandFiles) { +for (const file of commandFiles ) { const command = require(`./commands/${file}`); // Set a new item in the Collection // With the key as the command name and the value as the exported module