mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 15:57:43 +02:00
Fix
This commit is contained in:
@@ -24,7 +24,8 @@ const client = new Client({
|
|||||||
GatewayIntentBits.GuildMessageTyping,
|
GatewayIntentBits.GuildMessageTyping,
|
||||||
GatewayIntentBits.DirectMessages,
|
GatewayIntentBits.DirectMessages,
|
||||||
GatewayIntentBits.DirectMessageReactions,
|
GatewayIntentBits.DirectMessageReactions,
|
||||||
GatewayIntentBits.DirectMessageTyping
|
GatewayIntentBits.DirectMessageTyping,
|
||||||
|
GatewayIntentBits.MessageContent
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
const { formatNumber, checkFileExists } = require('./util/Util');
|
const { formatNumber, checkFileExists } = require('./util/Util');
|
||||||
@@ -68,14 +69,6 @@ client.slashRegistry.registerCommandsIn(path.join(__dirname, 'slash-commands'));
|
|||||||
client.on('ready', async () => {
|
client.on('ready', async () => {
|
||||||
client.logger.info(`[READY] Logged in as ${client.user.tag}! ID: ${client.user.id}`);
|
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
|
// Make temp directories
|
||||||
const tmpFolderExists = await checkFileExists(path.join(__dirname, 'tmp'));
|
const tmpFolderExists = await checkFileExists(path.join(__dirname, 'tmp'));
|
||||||
if (!tmpFolderExists) await mkdir(path.join(__dirname, 'tmp'));
|
if (!tmpFolderExists) await mkdir(path.join(__dirname, 'tmp'));
|
||||||
|
|||||||
Reference in New Issue
Block a user