minor file changes

This commit is contained in:
Nemo 2021-11-12 13:05:35 +01:00
parent 93922cca75
commit 61798a6067
3 changed files with 2 additions and 7 deletions

View File

@ -1,5 +1,5 @@
const { SlashCommandBuilder, codeBlock } = require('@discordjs/builders');
const { userMention } = require("@discordjs/builders");
module.exports = {
data: new SlashCommandBuilder()

View File

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

View File

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