minor file changes
This commit is contained in:
parent
93922cca75
commit
61798a6067
@ -1,5 +1,5 @@
|
||||
|
||||
const { SlashCommandBuilder, codeBlock } = require('@discordjs/builders');
|
||||
const { userMention } = require("@discordjs/builders");
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
|
@ -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;
|
||||
|
||||
|
2
index.js
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user