const intentArray = Object.keys(
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.MessageContent);
const bot = new Client({
intents: intentArray,
partials: ['GUILD_MESSAGES', 'MESSAGE', 'CHANNEL', 'REACTION']
});
if (auth.branch == "dev") {
// bot.login(test_token);
} else if (auth.branch == "master") {
bot.login(auth.token);
}
const intentArray = Object.keys(
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.MessageContent);
const bot = new Client({
intents: intentArray,
partials: ['GUILD_MESSAGES', 'MESSAGE', 'CHANNEL', 'REACTION']
});
if (auth.branch == "dev") {
// bot.login(test_token);
} else if (auth.branch == "master") {
bot.login(auth.token);
}