discordjs-cmd-handler
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -1,2 +0,2 @@ | ||
const { Client, Intents, CommandInteractionOptionResolver } = require("discord.js"); | ||
const { Client, Intents } = require("discord.js"); | ||
@@ -18,7 +18,8 @@ const commands = []; | ||
const setup = (token, _prefix) => { | ||
console.log(Intents.FLAGS); | ||
client = new Client({ intents: [ Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES ]}); | ||
let intents = Object.values(Intents.FLAGS); | ||
client = new Client({ intents: intents }); | ||
prefix = _prefix; | ||
client.on("ready", () => { | ||
client.login(token); | ||
console.log(`${client.user.username} is online!`); | ||
@@ -25,0 +26,0 @@ }); |
{ | ||
"name": "discordjs-cmd-handler", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "A simple Discord.js command handler.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47
2114