diff --git a/Xiao.js b/Xiao.js index 34f68016..3975fde4 100644 --- a/Xiao.js +++ b/Xiao.js @@ -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'));