Comparing version 2.5.0-dev.2 to 2.5.0-dev.3
export type InteractionType = "selectMenu" | "modal" | "button"; | ||
export * from "./InteractionBuilder"; | ||
export * from "./SlashCommandManager"; | ||
export * from "./ContextMenuBuilder"; |
@@ -19,2 +19,3 @@ "use strict"; | ||
__exportStar(require("./SlashCommandManager"), exports); | ||
__exportStar(require("./ContextMenuBuilder"), exports); | ||
//# sourceMappingURL=builders.js.map |
import { Interaction, Client, AnySelectMenuInteraction, ButtonInteraction, ModalSubmitInteraction } from "discord.js"; | ||
import { InteractionType } from "./builders"; | ||
type InteractionTypeMap<U extends string> = U extends "modal" ? ModalSubmitInteraction : U extends "selectMenu" ? AnySelectMenuInteraction : U extends "button" ? ButtonInteraction : never; | ||
export type InteractionTypeMap<U extends string> = U extends "modal" ? ModalSubmitInteraction : U extends "selectMenu" ? AnySelectMenuInteraction : U extends "button" ? ButtonInteraction : never; | ||
/** | ||
* @class | ||
* Represents an interaction object. | ||
* Represents an interaction object. (DOES NOT INCLUDE CONTEXT MENUS) | ||
*/ | ||
@@ -42,3 +42,2 @@ export declare class InteractionBuilder { | ||
* Build the actual interaction | ||
* @param intObject Interaction Object (see github) with properties | ||
*/ | ||
@@ -151,2 +150,1 @@ constructor(); | ||
} | ||
export {}; |
@@ -6,3 +6,3 @@ "use strict"; | ||
* @class | ||
* Represents an interaction object. | ||
* Represents an interaction object. (DOES NOT INCLUDE CONTEXT MENUS) | ||
*/ | ||
@@ -12,3 +12,2 @@ class InteractionBuilder { | ||
* Build the actual interaction | ||
* @param intObject Interaction Object (see github) with properties | ||
*/ | ||
@@ -15,0 +14,0 @@ constructor() { |
@@ -40,2 +40,3 @@ "use strict"; | ||
let msg = `Error running function ${this.functionsToRun.indexOf(fn)} ${clc.underline.italic(str[str.length - 1] != "}" ? str + " ...}" : str)} \n\n` + error; | ||
console.error(error); | ||
if (this.emitErr) { | ||
@@ -42,0 +43,0 @@ this.emit("error", msg); |
{ | ||
"name": "ic4d", | ||
"version": "2.5.0-dev.2", | ||
"version": "2.5.0-dev.3", | ||
"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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
126685
36
1724