Skip to content

Commit 65228af

Browse files
fix(types): allow CommandbuilderType to return all valid builder variants
1 parent 3a887eb commit 65228af

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "discord.https",
3-
"version": "3.0.12",
3+
"version": "3.0.14",
44
"description": "Discord.https is a modular library for building and managing Discord HTTP interactions with the Discord API. It provides tools for routing and managing interaction efficiently.",
55
"main": "./dist/index.js",
66
"type": "module",

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ class Client extends HttpInteractionServer {
201201
this.router._register("command", build.name, fns);
202202

203203
const commandDefinition = build.toJSON();
204-
this.router.CommandDefinitions.push(commandDefinition);
204+
this.router.CommandDefinitions.push(commandDefinition as any);
205205

206-
return new AutoCompleteKeyBuilder(commandDefinition);
206+
return new AutoCompleteKeyBuilder(commandDefinition as any);
207207
}
208208

209209
/**

src/interactionRouter/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ class InteractionRouter {
127127
this._register("command", build.name, fns);
128128

129129
const commandDefinition = build.toJSON();
130-
this.CommandDefinitions.push(commandDefinition);
130+
this.CommandDefinitions.push(commandDefinition as any);
131131

132-
return new AutoCompleteKeyBuilder(commandDefinition);
132+
return new AutoCompleteKeyBuilder(commandDefinition as any);
133133
}
134134

135135
/**

0 commit comments

Comments
 (0)