Skip to content

Commit dfe8d67

Browse files
fix(types): accept InteractionRouter instance in register method.
1 parent f791b65 commit dfe8d67

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
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.10",
3+
"version": "3.0.11",
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/interactionRouter/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,7 @@ class InteractionRouterCollector {
390390
* ```
391391
*/
392392

393-
register(
394-
...routes: (typeof InteractionRouter | InteractionRouterCollector)[]
395-
) {
393+
register(...routes: (InteractionRouter | InteractionRouterCollector)[]) {
396394
routes.forEach((route) => {
397395
if (route instanceof InteractionRouter) {
398396
this.__internal_collectedRoutes.push(route);

0 commit comments

Comments
 (0)