test
This commit is contained in:
parent
b49eb11914
commit
f836533cf8
3
index.js
3
index.js
@ -4,7 +4,7 @@ const path = require('node:path');
|
|||||||
const deploy = require('./deploy_command.js')
|
const deploy = require('./deploy_command.js')
|
||||||
const update = require('./displayer.js');
|
const update = require('./displayer.js');
|
||||||
const clean = require('./cleaner.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 client = new Client({ intents: [GatewayIntentBits.GuildMembers,GatewayIntentBits.GuildMessages,GatewayIntentBits.GuildMessageReactions,GatewayIntentBits.DirectMessageReactions,GatewayIntentBits.MessageContent] });
|
||||||
const args = process.argv;
|
const args = process.argv;
|
||||||
@ -94,7 +94,6 @@ client.on(Events.MessageReactionAdd, async (reaction, user) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.on(Events.InteractionCreate, async interaction => {
|
client.on(Events.InteractionCreate, async interaction => {
|
||||||
console.log(interaction);
|
|
||||||
if (!interaction.isChatInputCommand()) return;
|
if (!interaction.isChatInputCommand()) return;
|
||||||
|
|
||||||
const command = interaction.client.commands.get(interaction.commandName);
|
const command = interaction.client.commands.get(interaction.commandName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user