1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 06:43:17 +00:00

gateway intents (3.5.2)

This commit is contained in:
MatteZ02 2020-06-08 15:39:32 +03:00
parent 72ff4cad56
commit b70c0dc631
2 changed files with 14 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "musix", "name": "musix",
"version": "3.5.0", "version": "3.5.2",
"description": "V3 for Musix the discord music bot", "description": "V3 for Musix the discord music bot",
"main": "./index.js", "main": "./index.js",
"scripts": { "scripts": {

View File

@ -1,6 +1,7 @@
const { const {
Client, Client,
Collection Collection,
Intents
} = require("discord.js"); } = require("discord.js");
const admin = require("firebase-admin"); const admin = require("firebase-admin");
const serviceAccount = require("./config/serviceAccount.json"); const serviceAccount = require("./config/serviceAccount.json");
@ -8,11 +9,21 @@ const fs = require("fs");
const path = require("path"); const path = require("path");
const events = require("../events/events.js"); const events = require("../events/events.js");
const myIntents = new Intents();
myIntents.add(
1 << 0, // GUILDS
1 << 7, // GUILD_VOICE_STATES
1 << 9, // GUILD_MESSAGES
);
module.exports = class extends Client { module.exports = class extends Client {
constructor() { constructor() {
super({ super({
disableEveryone: true, disableEveryone: true,
disabledEvents: ["TYPING_START"], disabledEvents: ["TYPING_START"],
ws: {
intents: myIntents
}
}); });
admin.initializeApp({ admin.initializeApp({