minor file changes
This commit is contained in:
parent
93922cca75
commit
61798a6067
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
const { SlashCommandBuilder, codeBlock } = require('@discordjs/builders');
|
const { SlashCommandBuilder, codeBlock } = require('@discordjs/builders');
|
||||||
|
const { userMention } = require("@discordjs/builders");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'interactionCreate',
|
name: 'interactionCreate',
|
||||||
async execute(interaction) {
|
async execute(interaction) {
|
||||||
if(interaction.isButton()){
|
|
||||||
console.log(interaction);
|
|
||||||
interaction.reply({ content: `${interaction.user.tag} clicked me`, ephemeral : true });
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (!interaction.isCommand()) return;
|
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();
|
client.commands = new Collection();
|
||||||
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
|
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}`);
|
const command = require(`./commands/${file}`);
|
||||||
// Set a new item in the Collection
|
// Set a new item in the Collection
|
||||||
// With the key as the command name and the value as the exported module
|
// With the key as the command name and the value as the exported module
|
||||||
|
Loading…
Reference in New Issue
Block a user