8.3 Update
This commit is contained in:
1 parent
ac0daf5fe7
commit
236d67707f
23 files changed
+1576
-2247
No files matched your search
@@ -13,9 +13,10 @@ class Client extends Discord.Client {
|
||||
intents: [
|
||||
GatewayIntentBits.Guilds,
|
||||
GatewayIntentBits.GuildMembers,
|
||||
GatewayIntentBits.GuildMessages
|
||||
GatewayIntentBits.GuildMessages,
|
||||
GatewayIntentBits.MessageContent
|
||||
],
|
||||
partials: [Partials.Channel]
|
||||
partials: [Partials.Message, Partials.Channel]
|
||||
});
|
||||
|
||||
this.commands = new Discord.Collection();
|
||||
@@ -105,6 +106,10 @@ class Client extends Discord.Client {
|
||||
tempCommandFiles = tempCommandFiles.filter(item => item !== "settings.js");
|
||||
}
|
||||
|
||||
if (cmdconfig.Mod.Enabled === false) {
|
||||
tempCommandFiles = tempCommandFiles.filter(item => item !== "mod.js");
|
||||
}
|
||||
|
||||
const commandFiles = tempCommandFiles;
|
||||
const commands = commandFiles.map((file) => require(`../Commands/${file}`));
|
||||
|
||||
|
||||
Reference in new issue
Block a user