#intents problem

1 messages · Page 1 of 1 (latest)

hasty valve
wicked rain
#

?

#

what

hasty valve
#

you doing all in index.js ?

wicked rain
hasty valve
#

intents problem

wicked rain
#

is this private ?

hasty valve
wicked rain
hasty valve
wicked rain
#
const express = require('express')
const app = express();
const port = 3000

app.get('/', (req, res) => res.send('Its good and Alive :)'))

app.listen(port, () =>
console.log(`Your app is listening a http://localhost:${port}`)
);
require("dotenv").config();
const Discord = require('discord.js');
const { Client, Intents, Collection } = require('discord.js');
const client = new Discord.Client({ intents: 523 });
const UrlsConfig = require("./database/models/UrlsConfig");
const fetchProjects = require("./fetchProjects");
const { timeout, disable_fetching } = require("./config.json");
const { MessageMenuOption, MessageMenu } = require("discord.js")
const readlineSync = require('readline-sync');
const { MessageEmbed } = require('discord.js')
const DiscordButtons = require('discord.js'); //Requiring Discord-BUttons module.

const colors = require('./colors.json')
const { readdirSync } = require('fs');
const DisTube = require('distube')

const button = require('discord.js');
const disbut = require("discord.js");

new Client({
  disableEveryone: true,
});
require('discord-buttons')(client);
(async () => {
  await require("./database/connect")();


  let pros = await UrlsConfig.find();

  client.commands = new Collection();
  client.aliases = new Collection();
  client.projectsSize = 0;
  client.projects = pros.map((p) => p.projectURL);

  UrlsConfig.countDocuments({}, async (err, total) => {
    client.projectsSize = total;

    ["command", "events"].forEach((handler) => {
      require(`./handlers/${handler}`)(client);
    });

    await client.login(process.env.BOT_TOKEN);

    if (!disable_fetching) fetchProjects(client.projects, client);
  });
})();
hasty valve
#
const express = require('express')
const app = express();
const port = 3000

app.get('/', (req, res) => res.send('Its good and Alive :)'))

app.listen(port, () =>
console.log(`Your app is listening a http://localhost:${port}`)
);
require("dotenv").config();
const Discord = require('discord.js');
const { Client, Intents, Collection } = require('discord.js');
const intents = new discord.Intents(523); 
const client = new discord.Client({intents});
const UrlsConfig = require("./database/models/UrlsConfig");
const fetchProjects = require("./fetchProjects");
const { timeout, disable_fetching } = require("./config.json");
const { MessageMenuOption, MessageMenu } = require("discord.js")
const readlineSync = require('readline-sync');
const { MessageEmbed } = require('discord.js')
const DiscordButtons = require('discord.js'); //Requiring Discord-BUttons module.

const colors = require('./colors.json')
const { readdirSync } = require('fs');
const DisTube = require('distube')

const button = require('discord.js');
const disbut = require("discord.js");

new Client({
  disableEveryone: true,
});
require('discord-buttons')(client);
(async () => {
  await require("./database/connect")();


  let pros = await UrlsConfig.find();

  client.commands = new Collection();
  client.aliases = new Collection();
  client.projectsSize = 0;
  client.projects = pros.map((p) => p.projectURL);

  UrlsConfig.countDocuments({}, async (err, total) => {
    client.projectsSize = total;

    ["command", "events"].forEach((handler) => {
      require(`./handlers/${handler}`)(client);
    });

    await client.login(process.env.BOT_TOKEN);

    if (!disable_fetching) fetchProjects(client.projects, client);
  });
})();```
#

try this

wicked rain
#

ok

hasty valve
#

wait

#

.

wicked rain
#

fine

hasty valve
#
const express = require('express')
const app = express();
const port = 3000

app.get('/', (req, res) => res.send('Its good and Alive :)'))

app.listen(port, () =>
console.log(`Your app is listening a http://localhost:${port}`)
);
require("dotenv").config();
const Discord = require('discord.js');
const { Client, Intents, Collection } = require('discord.js');
const intents = new discord.Intents(6079); //
const client = new discord.Client({
  allowedMentions: {
    parse: ["users", "roles"],
    repliedUser: true,
  },
  intents,
});
const UrlsConfig = require("./database/models/UrlsConfig");
const fetchProjects = require("./fetchProjects");
const { timeout, disable_fetching } = require("./config.json");
const { MessageMenuOption, MessageMenu } = require("discord.js")
const readlineSync = require('readline-sync');
const { MessageEmbed } = require('discord.js')
const DiscordButtons = require('discord.js'); //Requiring Discord-BUttons module.

const colors = require('./colors.json')
const { readdirSync } = require('fs');
const DisTube = require('distube')

const button = require('discord.js');
const disbut = require("discord.js");
require('discord-buttons')(client);
(async () => {
  await require("./database/connect")();


  let pros = await UrlsConfig.find();

  client.commands = new Collection();
  client.aliases = new Collection();
  client.projectsSize = 0;
  client.projects = pros.map((p) => p.projectURL);

  UrlsConfig.countDocuments({}, async (err, total) => {
    client.projectsSize = total;

    ["command", "events"].forEach((handler) => {
      require(`./handlers/${handler}`)(client);
    });

    await client.login(process.env.BOT_TOKEN);

    if (!disable_fetching) fetchProjects(client.projects, client);
  });
})();```
#

here

wicked rain
#

ok wait

blazing oyster
#

Wouldn't it make sense for it to select all intents?

wicked rain
#

hope it works

#

let me try

hasty valve
wicked rain
#

I can correct this

#

one sec

hasty valve
#

k

blazing oyster
hasty valve
#

k

wicked rain
#

oof

hasty valve
#

not error of index check the file where you doing that

wicked rain
#

its all good?

#

full index.js

#

this thing is making huge problem

#

@hasty valve