Skip to content

Commit c89338e

Browse files
committedDec 14, 2024·
remove experimental hooks
1 parent 6ce87cb commit c89338e

30 files changed

+59
-95
lines changed
 

‎apps/docs/content/docs/classes/ButtonKit.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The API data associated with this component.
2323

2424
### public dispose(): ButtonKit
2525

26-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/components/ButtonKit.ts#L165)
26+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/components/ButtonKit.ts#L165)
2727

2828
### public onClick(handler, data?): this
2929

@@ -59,15 +59,15 @@ button.onClick(null);
5959
| handler | CommandKitButtonBuilderInteractionCollectorDispatch || The handler to run when the button is clicked |
6060
| data | CommandKitButtonBuilderInteractionCollectorDispatchContextData || The context data to use for the interaction collector |
6161

62-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/components/ButtonKit.ts#L74)
62+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/components/ButtonKit.ts#L74)
6363

6464
### public onEnd(handler): this
6565

6666
| Parameter | Type | Optional |
6767
| --------- | ---------------------------- | -------- |
6868
| handler | CommandKitButtonBuilderOnEnd ||
6969

70-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/components/ButtonKit.ts#L98)
70+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/components/ButtonKit.ts#L98)
7171

7272
### public setCustomId(customId): this
7373

‎apps/docs/content/docs/classes/CommandKit.mdx

+13-13
Original file line numberDiff line numberDiff line change
@@ -17,47 +17,47 @@ CommandKit(options);
1717

1818
### public static \_instance: any
1919

20-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/CommandKit.ts#L8)
20+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/CommandKit.ts#L12)
2121

2222
### public client: any
2323

2424
Get the client attached to this CommandKit instance.
2525

26-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/CommandKit.ts#L38)
26+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/CommandKit.ts#L42)
2727

2828
### public commandHandler: any
2929

3030
Get command handler instance.
3131

32-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/CommandKit.ts#L45)
32+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/CommandKit.ts#L49)
3333

3434
### public commands: any
3535

36-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/CommandKit.ts#L125)
36+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/CommandKit.ts#L128)
3737

3838
### public commandsPath: any
3939

40-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/CommandKit.ts#L141)
40+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/CommandKit.ts#L144)
4141

4242
### public devGuildIds: any
4343

44-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/CommandKit.ts#L169)
44+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/CommandKit.ts#L172)
4545

4646
### public devRoleIds: any
4747

48-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/CommandKit.ts#L176)
48+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/CommandKit.ts#L179)
4949

5050
### public devUserIds: any
5151

52-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/CommandKit.ts#L162)
52+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/CommandKit.ts#L165)
5353

5454
### public eventsPath: any
5555

56-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/CommandKit.ts#L148)
56+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/CommandKit.ts#L151)
5757

5858
### public validationsPath: any
5959

60-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/CommandKit.ts#L155)
60+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/CommandKit.ts#L158)
6161

6262
## Methods
6363

@@ -69,16 +69,16 @@ Updates application commands with the latest from "commandsPath".
6969
| --------- | ------------- | -------- |
7070
| type | ReloadOptions ||
7171

72-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/CommandKit.ts#L101)
72+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/CommandKit.ts#L104)
7373

7474
### public reloadEvents(): [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[void](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined)>
7575

7676
Updates application events with the latest from "eventsPath".
7777

78-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/CommandKit.ts#L109)
78+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/CommandKit.ts#L112)
7979

8080
### public reloadValidations(): [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[void](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined)>
8181

8282
Updates application command validations with the latest from "validationsPath".
8383

84-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/CommandKit.ts#L117)
84+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/CommandKit.ts#L120)

‎apps/docs/content/docs/enums/ReloadType.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ description: No description provided
1010
| Developer | 'dev' | N/A | Reload developer/guild commands. |
1111
| Global | 'global' | N/A | Reload global commands. |
1212

13-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/types.ts#L284)
13+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/types.ts#L275)

‎apps/docs/content/docs/functions/defineConfig.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ description: No description provided
99
| --------- | ---------------------------------------------------------------- | -------- |
1010
| config | PartialConfig\<[CommandKitConfig](/docs/types/CommandKitConfig)> ||
1111

12-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/config.ts#L71)
12+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/config.ts#L71)

‎apps/docs/content/docs/functions/getConfig.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ description: No description provided
55

66
### getConfig(): [CommandKitConfig](/docs/types/CommandKitConfig)
77

8-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/config.ts#L60)
8+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/config.ts#L60)

‎apps/docs/content/docs/types/AutocompleteProps.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Props for autocomplete command run functions.
1313
| handler | [CommandKit](/docs/classes/CommandKit) | N/A | The current CommandKit handler instance. |
1414
| interaction | AutocompleteInteraction\<CacheType> | N/A | The current autocomplete command interaction object. |
1515

16-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/types.ts#L146)
16+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/types.ts#L137)

‎apps/docs/content/docs/types/CommandContext.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Represents a command context.
1313
| handler | [CommandKit](/docs/classes/CommandKit) | N/A | The command data. |
1414
| interaction | Interaction\<CacheType> | N/A | The interaction that triggered this command. |
1515

16-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/types.ts#L80)
16+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/types.ts#L71)

‎apps/docs/content/docs/types/CommandData.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ description: No description provided
77

88
- Type: RESTPostAPIApplicationCommandsJSONBody
99

10-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/types.ts#L256)
10+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/types.ts#L247)

‎apps/docs/content/docs/types/CommandFileObject.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ Represents a command file.
1616
| options | CommandOptions | N/A |
1717
| run | ( ctx: CommandContext\<Interaction, Cached> ) => void | N/A |
1818

19-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/types.ts#L101)
19+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/types.ts#L92)

‎apps/docs/content/docs/types/CommandKitButtonBuilderInteractionCollectorDispatch.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ If the first argument is null, it means that the interaction collector has been
1212
interaction: ButtonInteraction
1313
) => Awaitable\<void>
1414

15-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/components/ButtonKit.ts#L17)
15+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/components/ButtonKit.ts#L17)

‎apps/docs/content/docs/types/CommandKitButtonBuilderInteractionCollectorDispatchContextData.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ description: No description provided
1111
time: number
1212
} & Omit\<InteractionCollectorOptions\<ButtonInteraction>, 'filter' \| 'componentType'>
1313

14-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/components/ButtonKit.ts#L23)
14+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/components/ButtonKit.ts#L23)

‎apps/docs/content/docs/types/CommandKitButtonBuilderOnEnd.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ description: No description provided
99
...args: unknown\[]
1010
) => Awaitable\<void>
1111

12-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/components/ButtonKit.ts#L21)
12+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/components/ButtonKit.ts#L21)

‎apps/docs/content/docs/types/CommandKitConfig.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ description: No description provided
1919
| src | [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) | N/A | The source directory of the project. |
2020
| watch | [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) | N/A | Whether or not to use the watch mode. Defaults to `true`. |
2121

22-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/config.ts#L1)
22+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/config.ts#L1)

‎apps/docs/content/docs/types/CommandKitData.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ Private data for the CommandKit class.
1818
| devUserIds | Array\<string> | N/A | List of developer user IDs to restrict devOnly commands to. |
1919
| eventHandler | EventHandler | N/A | N/A |
2020
| eventsPath | [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) | N/A | The path to your events directory. |
21-
| experimental | \{ hooks: boolean } | N/A | Options for experimental features. |
2221
| skipBuiltInValidations | [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) | N/A | Skip CommandKit's built-in validations (for devOnly commands). |
2322
| validationHandler | ValidationHandler | N/A | N/A |
2423
| validationsPath | [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) | N/A | The path to the validations directory. |
2524

26-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/types.ts#L71)
25+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/types.ts#L62)

‎apps/docs/content/docs/types/CommandKitOptions.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ Options for instantiating a CommandKit handler.
1616
| devRoleIds | Array\<string> | N/A | List of developer role IDs to restrict devOnly commands to. |
1717
| devUserIds | Array\<string> | N/A | List of developer user IDs to restrict devOnly commands to. |
1818
| eventsPath | [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) | N/A | The path to your events directory. |
19-
| experimental | \{ hooks: boolean } | N/A | Options for experimental features. |
2019
| skipBuiltInValidations | [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) | N/A | Skip CommandKit's built-in validations (for devOnly commands). |
2120
| validationsPath | [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) | N/A | The path to the validations directory. |
2221

23-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/types.ts#L20)
22+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/types.ts#L20)

‎apps/docs/content/docs/types/CommandObject.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ description: No description provided
1212
options: CommandOptions
1313
}
1414

15-
- [Source](https://github.com/underctrl-io/commandkit/blob/fe9b9d88f8541b4758cc813e8505d26748e6e5bd/packages/commandkit/src/types.ts#L258)
15+
- [Source](https://github.com/underctrl-io/commandkit/blob/6ce87cba44f953b46a72430cb1272818640529f4/packages/commandkit/src/types.ts#L249)

0 commit comments

Comments
 (0)
Please sign in to comment.