@gary50613/discord.js-command-handler
Advanced tools
Comparing version 2.5.1 to 2.5.2
{ | ||
"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 @@ |
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
559
29712