test
This commit is contained in:
parent
c2bba1aa8b
commit
5874a1473f
14
index.js
14
index.js
@ -5,19 +5,19 @@ 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, Partials } = require('discord.js');
|
const { Client, Intents, Collection, Events, Partials } = require('discord.js');
|
||||||
const { initDatabase, createTables, cleanExpiredCodes } = require('./database.js');
|
const { initDatabase, createTables, cleanExpiredCodes } = require('./database.js');
|
||||||
const { startConsoleMonitoring } = require('./consoleMonitor.js');
|
const { startConsoleMonitoring } = require('./consoleMonitor.js');
|
||||||
|
|
||||||
const client = new Client({ intents:
|
const client = new Client({ intents:
|
||||||
[
|
[
|
||||||
GatewayIntentBits.GuildMembers,
|
Intents.FLAGS.GUILD_MEMBERS,
|
||||||
GatewayIntentBits.GuildMessages,
|
Intents.FLAGS.GUILD_MESSAGES,
|
||||||
GatewayIntentBits.GuildMessageReactions,
|
Intents.FLAGS.GUILD_MESSAGE_REACTIONS,
|
||||||
GatewayIntentBits.MessageContent,
|
Intents.FLAGS.MESSAGE_CONTENT,
|
||||||
GatewayIntentBits.Guilds
|
Intents.FLAGS.GUILDS
|
||||||
],
|
],
|
||||||
partials: [Partials.Message, Partials.Channel, Partials.Reaction],
|
partials: [Partials.MESSAGE, Partials.CHANNEL, Partials.REACTION],
|
||||||
});
|
});
|
||||||
|
|
||||||
const headers = {
|
const headers = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user