mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-24 02:14:41 +02:00
intents
This commit is contained in:
@@ -1,15 +1,7 @@
|
|||||||
require('dotenv').config();
|
require('dotenv').config();
|
||||||
const { Client, GatewayIntentBits } = require('discord.js');
|
const { Client, IntentsBitField, Collection } = require("discord.js");
|
||||||
|
|
||||||
const client = new Client({
|
|
||||||
intents: [
|
|
||||||
GatewayIntentBits.Guilds,
|
|
||||||
GatewayIntentBits.GuildMessages,
|
|
||||||
GatewayIntentBits.MessageContent,
|
|
||||||
GatewayIntentBits.GuildMembers,
|
|
||||||
],
|
|
||||||
});
|
|
||||||
|
|
||||||
|
const client = new Client({intents: new IntentsBitField(3276799)});
|
||||||
|
|
||||||
client.on('ready', () => {
|
client.on('ready', () => {
|
||||||
console.log(`Logged in as ${client.user.tag}!`);
|
console.log(`Logged in as ${client.user.tag}!`);
|
||||||
|
|||||||
Reference in New Issue
Block a user