Skip to content

Commit

Permalink
[Fix] disabled guild members intent because not needed atm
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Aug 31, 2021
1 parent fbe9d44 commit 7ebc5c0
Show file tree
Hide file tree
Showing 3 changed files with 1,909 additions and 14 deletions.
2 changes: 1 addition & 1 deletion commands/music/clear.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
embeds: [
embedMessage(
"#9dcc37",
`❌ | No Queue has been created for this guild. <Queue is empty>`
`❌ | No Queue has been created for this guild`
),
],
});
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
const fs = require("fs");
const { Client, Collection, Intents } = require("discord.js");
const { token } = require("./config.json");
const playDL = require("play-dl");
const client = new Client({
intents: [
Intents.FLAGS.GUILD_MEMBERS,
// Intents.FLAGS.GUILD_MEMBERS,
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.GUILD_VOICE_STATES,
Expand Down Expand Up @@ -52,7 +53,6 @@ for (const file of botEvents) {

client.on("interactionCreate", async (interaction) => {
if (!interaction.isCommand()) return;

const command = client.commands.get(interaction.commandName);
if (!command) return;

Expand Down
Loading

0 comments on commit 7ebc5c0

Please sign in to comment.