ui changes
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
const { Client, GatewayIntentBits, Collection } = require('discord.js');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const deployCommands = require('./deploy-commands');
|
||||
|
||||
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
|
||||
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers] });
|
||||
|
||||
client.commands = new Collection();
|
||||
|
||||
@@ -27,6 +28,10 @@ client.on('interactionCreate', async interaction => {
|
||||
}
|
||||
});
|
||||
|
||||
client.on('guildCreate', guild => {
|
||||
deployCommands(guild.id);
|
||||
});
|
||||
|
||||
const login = () => {
|
||||
client.login(process.env.DISCORD_BOT_TOKEN);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user