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.5.1 to 2.5.2

2

package.json
{
"name": "@gary50613/discord.js-command-handler",
"version": "2.5.1",
"version": "2.5.2",
"description": "simple discord.js command handler",

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

import { Message, MessageEmbed, Client, PermissionResolvable, GuildMember, Guild } from "discord.js"
import {EventEmitter} from "events";
import { EventEmitter } from "events";

@@ -88,2 +88,10 @@ declare module "@gary50613/discord.js-command-handler" {

export interface CommandManagerEvents {
dm: [Message],
ratelimit: [number],
execute: [Command, Message]
error: [Error, Command, Message]
promiseError: [Error, Command, Message]
}
declare class CommandManager extends EventEmitter {

@@ -110,13 +118,4 @@ public commands: Command[]

public getGroup(groupName: string): Group
public on(name: 'dm', listener: (message: Message) => void): this
public on(name: 'ratelimit', listener: (time: number) => void): this
public on(name: 'execute', listener: (command: Command, message: Message) => void): this
public on(name: 'error' | 'promiseError', listener: (error: Error, command: Command, message: Message) => void): this
public once(name: 'dm', listener: (message: Message) => void): this
public once(name: 'ratelimit', listener: (time: number) => void): this
public once(name: 'execute', listener: (command: Command, message: Message) => void): this
public once(name: 'error' | 'promiseError', listener: (error: Error, command: Command, message: Message) => void): this
public on<K extends keyof CommandManagerEvents>(name: K, listener: (...args: CommandManagerEvents[K]) => void): this
public once<K extends keyof CommandManagerEvents>(name: K, listener: (...args: CommandManagerEvents[K]) => void): this
public ratelimit?: RatelimitManager

@@ -148,6 +147,6 @@ }

export class Util{
public static isObject(o:any):boolean
public static assignObject<K,T extends Object>(o:K,t:T):K
public static loadFolder(fPath:string):Command[]
export class Util {
public static isObject(o: any): boolean
public static assignObject<K, T extends Object>(o: K, t: T): K
public static loadFolder(fPath: string): Command[]
}

@@ -154,0 +153,0 @@

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