1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 00:23: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",
"version": "3.5.0",
"version": "3.5.2",
"description": "V3 for Musix the discord music bot",
"main": "./index.js",
"scripts": {

View File

@ -1,6 +1,7 @@
const {
Client,
Collection
Collection,
Intents
} = require("discord.js");
const admin = require("firebase-admin");
const serviceAccount = require("./config/serviceAccount.json");
@ -8,11 +9,21 @@ const fs = require("fs");
const path = require("path");
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 {
constructor() {
super({
disableEveryone: true,
disabledEvents: ["TYPING_START"],
ws: {
intents: myIntents
}
});
admin.initializeApp({