mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-22 21:13:18 +00:00
gateway intents (3.5.2)
This commit is contained in:
parent
72ff4cad56
commit
b70c0dc631
@ -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": {
|
||||
@ -46,4 +46,4 @@
|
||||
"ytdl-core": "^3.1.0",
|
||||
"zlib-sync": "^0.1.6"
|
||||
}
|
||||
}
|
||||
}
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user