Comparing version 2.5.0-dev to 2.5.0-dev.1
@@ -48,3 +48,3 @@ import { Interaction, Client } from "discord.js"; | ||
*/ | ||
setCustomId(id: string): void; | ||
setCustomId(id: string): InteractionBuilder; | ||
/** | ||
@@ -54,3 +54,3 @@ * Set the type of the interaction. | ||
*/ | ||
setType(type: InteractionType): void; | ||
setType(type: InteractionType): InteractionBuilder; | ||
/** | ||
@@ -60,3 +60,3 @@ * Callback function to be called when the interaction is called. | ||
*/ | ||
setCallback(f: (interaction: Interaction, client?: Client) => void): void; | ||
setCallback(f: (interaction: Interaction, client?: Client) => void): InteractionBuilder; | ||
/** | ||
@@ -66,3 +66,3 @@ * Set the interaction to only accept the author's input. | ||
*/ | ||
setOnlyAuthor(bool: boolean): void; | ||
setOnlyAuthor(bool: boolean): InteractionBuilder; | ||
/** | ||
@@ -73,3 +73,3 @@ * Sets the interaction to have a timeout. | ||
*/ | ||
setTimeout(func: (interaction: Interaction, client?: Client) => void, timeout?: number): void; | ||
setTimeout(func: (interaction: Interaction, client?: Client) => void, timeout?: number): InteractionBuilder; | ||
} | ||
@@ -76,0 +76,0 @@ /** |
@@ -29,2 +29,3 @@ "use strict"; | ||
this.customId = id; | ||
return this; | ||
} | ||
@@ -37,2 +38,3 @@ /** | ||
this.type = type; | ||
return this; | ||
} | ||
@@ -45,2 +47,3 @@ /** | ||
this.callback = f; | ||
return this; | ||
} | ||
@@ -53,2 +56,3 @@ /** | ||
this.onlyAuthor = bool; | ||
return this; | ||
} | ||
@@ -63,2 +67,3 @@ /** | ||
this.timeout = timeout != undefined ? timeout : this.defaultTimeout; | ||
return this; | ||
} | ||
@@ -65,0 +70,0 @@ } |
@@ -59,3 +59,3 @@ import { Client, PermissionFlags, SlashCommandBuilder, ChatInputCommandInteraction } from "discord.js"; | ||
*/ | ||
setUserPermissions(...perms: bigint[]): void; | ||
setUserPermissions(...perms: bigint[]): SlashCommandManager; | ||
/** | ||
@@ -65,3 +65,3 @@ * Set the permissions required by the bot for this command to execute. | ||
*/ | ||
setBotPermissions(...perms: bigint[]): void; | ||
setBotPermissions(...perms: bigint[]): SlashCommandManager; | ||
/** | ||
@@ -71,3 +71,3 @@ * Set whether or not this command is deleted. If deleted and loader tries to load it, it will be skipped. | ||
*/ | ||
setDeleted(bool: boolean): void; | ||
setDeleted(bool: boolean): SlashCommandManager; | ||
/** | ||
@@ -77,3 +77,3 @@ * Append all the interactions associated with this command, here if you'd like. | ||
*/ | ||
addInteractions(...interactions: InteractionBuilder[]): void; | ||
addInteractions(...interactions: InteractionBuilder[]): SlashCommandManager; | ||
} | ||
@@ -80,0 +80,0 @@ /** |
@@ -34,2 +34,3 @@ "use strict"; | ||
this.permissionsRequired = perms; | ||
return this; | ||
} | ||
@@ -42,2 +43,3 @@ /** | ||
this.botPermissions = perms; | ||
return this; | ||
} | ||
@@ -50,2 +52,3 @@ /** | ||
this.deleted = bool; | ||
return this; | ||
} | ||
@@ -62,2 +65,3 @@ /** | ||
}); | ||
return this; | ||
} | ||
@@ -64,0 +68,0 @@ } |
{ | ||
"name": "ic4d", | ||
"version": "2.5.0-dev", | ||
"version": "2.5.0-dev.1", | ||
"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
123863
1657