This commit is contained in:
Dragon Fire
2024-04-08 01:30:24 -04:00
parent 6ce38c282b
commit 2ad26e325a
+2 -9
View File
@@ -24,7 +24,8 @@ const client = new Client({
GatewayIntentBits.GuildMessageTyping,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.DirectMessageReactions,
GatewayIntentBits.DirectMessageTyping
GatewayIntentBits.DirectMessageTyping,
GatewayIntentBits.MessageContent
]
});
const { formatNumber, checkFileExists } = require('./util/Util');
@@ -68,14 +69,6 @@ client.slashRegistry.registerCommandsIn(path.join(__dirname, 'slash-commands'));
client.on('ready', async () => {
client.logger.info(`[READY] Logged in as ${client.user.tag}! ID: ${client.user.id}`);
// Register Slash Commands in Test Server
try {
const slashCmds = await client.slashRegistry.uploadTestCommands();
client.logger.info(`[SLASH] Registered ${slashCmds.length} slash commands for testing!`);
} catch (err) {
client.logger.error(`[SLASH] Failed to register slash commands for testing:\n${err.stack}`);
}
// Make temp directories
const tmpFolderExists = await checkFileExists(path.join(__dirname, 'tmp'));
if (!tmpFolderExists) await mkdir(path.join(__dirname, 'tmp'));