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

@gary50613/discord.js-command-handler

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gary50613/discord.js-command-handler - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

7

handler/InteractionHandler.js

@@ -13,2 +13,9 @@ const InteractionResponse = require("../Base/InteractionResponse")

this.interaction = interaction
if(this.interaction?.member)
this.member = this.interaction.member
if(this.interaction?.guild_id)
this.guild = bot.guilds.cache.get(this.interaction?.guild_id)
if(this.interaction?.channel_id)
this.channel = bot.channels.cache.get(this.interaction?.channel_id)
}

@@ -15,0 +22,0 @@

1

manager/InteractionManager.js

@@ -20,3 +20,2 @@ const Interaction = require("../Base/Interaction")

bot.ws.on("INTERACTION_CREATE", async (interaction) => {
let executor = this.interactions.get(interaction?.data?.name)

@@ -23,0 +22,0 @@

{
"name": "@gary50613/discord.js-command-handler",
"version": "2.1.2",
"version": "2.1.3",
"description": "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