New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ic4d

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ic4d - npm Package Compare versions

Comparing version 2.5.0-dev.4 to 2.5.0-dev.5

17

dist/handler/builders/ContextMenuBuilder.d.ts

@@ -1,2 +0,2 @@

import { ContextMenuCommandInteraction, Client, ApplicationCommandType } from "discord.js";
import { ContextMenuCommandInteraction, Client, ApplicationCommandType, ContextMenuCommandBuilder } from "discord.js";
/**

@@ -13,13 +13,10 @@ * @class

/**
*
* @param name Name of the context menu.
* Build the actual context menu.
* @param context Context Menu Object
*/
constructor(name: string);
constructor(context: {
data: ContextMenuCommandBuilder;
execute: (interaction: ContextMenuCommandInteraction, client?: Client) => void;
});
/**
* Sets the type of the context menu
* @param type Context Menu type.
* @returns
*/
setType(type: ApplicationCommandType): ContextMenuBuilder;
/**
* Sets the deleted property of the context menu.

@@ -26,0 +23,0 @@ * @param deleted Boolean indicating whether the context menu is deleted.

@@ -10,19 +10,12 @@ "use strict";

/**
*
* @param name Name of the context menu.
* Build the actual context menu.
* @param context Context Menu Object
*/
constructor(name) {
constructor(context) {
this.isCommand = false; // This is so that when it's read by th command handler, it's skipped. And because it's its own interaction like slash commands, the interaction handler reads it seprately.
this.name = name;
this.name = context.data.toJSON().name;
this.type = context.data.toJSON().type;
this.callback = context.execute;
}
/**
* Sets the type of the context menu
* @param type Context Menu type.
* @returns
*/
setType(type) {
this.type = type;
return this;
}
/**
* Sets the deleted property of the context menu.

@@ -29,0 +22,0 @@ * @param deleted Boolean indicating whether the context menu is deleted.

{
"name": "ic4d",
"version": "2.5.0-dev.4",
"version": "2.5.0-dev.5",
"description": "Discord.js Interaction and Command handler 4 Dummies",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

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