Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

discordjs-cmd-handler

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discordjs-cmd-handler - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

7

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc