Skip to content

Commit 679ddf4

Browse files
authored
Merge pull request #65 from underctrl-io/master
docs: fix broken links
2 parents fdb2045 + 219fd84 commit 679ddf4

10 files changed

Lines changed: 24 additions & 20 deletions

apps/docs/pages/docs/classes/CommandKit.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,52 +2,52 @@
22

33
### `commands`
44

5-
- Type: [`CommandObject[]`](/typedef/CommandObject)
5+
- Type: [`CommandObject[]`](/docs/typedef/CommandObject)
66

77
An array of all the command objects that CommandKit is handling. This includes all the properties and methods that are also set outside of CommandKit's configuration. It does however not include the `run` method since CommandKit handles that internally.
88

99
### `commandsPath`
1010

1111
- Type: `string` | `undefined`
1212

13-
The path to the commands directory which was set when [instantiating CommandKit](/docs/commandkit-setup).
13+
The path to the commands directory which was set when [instantiating CommandKit](/guide/commandkit-setup).
1414

1515
### `eventsPath`
1616

1717
- Type: `string` | `undefined`
1818

19-
The path to the events directory which was set when [instantiating CommandKit](/docs/commandkit-setup).
19+
The path to the events directory which was set when [instantiating CommandKit](/guide/commandkit-setup).
2020

2121
### `validationsPath`
2222

2323
- Type: `string` | `undefined`
2424

25-
The path to the validations directory which was set when [instantiating CommandKit](/docs/commandkit-setup).
25+
The path to the validations directory which was set when [instantiating CommandKit](/guide/commandkit-setup).
2626

2727
### `devUserIds`
2828

2929
- Type: `string[]`
3030

31-
The array of developer user IDs which was set when [instantiating CommandKit](/docs/commandkit-setup).
31+
The array of developer user IDs which was set when [instantiating CommandKit](/guide/commandkit-setup).
3232

3333
### `devGuildIds`
3434

3535
- Type: `string[]`
3636

37-
The array of development server IDs which was set when [instantiating CommandKit](/docs/commandkit-setup).
37+
The array of development server IDs which was set when [instantiating CommandKit](/guide/commandkit-setup).
3838

3939
### `devRoleIds`
4040

4141
- Type: `string[]`
4242

43-
The array of developer role IDs which was set when [instantiating CommandKit](/docs/commandkit-setup).
43+
The array of developer role IDs which was set when [instantiating CommandKit](/guide/commandkit-setup).
4444

4545
### `reloadCommands`
4646

47-
- Props type: `'dev'` | `'global'` | [`ReloadType`](/enums/ReloadType) (optional)
47+
- Props type: `'dev'` | `'global'` | [`ReloadType`](/docs/enums/ReloadType) (optional)
4848
- Return type: `Promise<void>`
4949

50-
Reloads application commands. Using "dev" will only reload commands marked with `devOnly`, and using "global" will do the opposite. Not passing in a property will reload both dev and global commands. The reload behaviour depends on [`bulkRegister`](/docs/commandkit-setup#bulkregister-optional).
50+
Reloads application commands. Using "dev" will only reload commands marked with `devOnly`, and using "global" will do the opposite. Not passing in a property will reload both dev and global commands. The reload behaviour depends on [`bulkRegister`](/guide/commandkit-setup#bulkregister-optional).
5151

5252
### `reloadEvents`
5353

apps/docs/pages/docs/classes/components/ButtonKit.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Callout } from 'nextra/components';
44

55
<Callout type="info">
66
ButtonKit extends the
7-
[ButtonBuilder](https://discord.js.org/docs/packages/discord.js/main/ButtonBuilder:Class)
7+
[`ButtonBuilder`](https://discord.js.org/docs/packages/discord.js/main/ButtonBuilder:Class)
88
class, provided by discord.js.
99
</Callout>
1010

@@ -40,10 +40,14 @@ button.onClick(
4040
);
4141

4242
// Remove onClick handler and destroy the interaction collector
43-
button.onClick(null);
43+
button.dispose();
4444
```
4545

46-
### onEnd
46+
### `onEnd`
4747

4848
- Return type: `ButtonKit`
4949
- Props type: [`CommandKitButtonBuilderOnEnd`](/docs/typedef/CommandKitButtonBuilderOnEnd)
50+
51+
### `dispose`
52+
53+
- Return type: `void`

apps/docs/pages/docs/typedef/AutocompleteProps.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
### `handler`
88

9-
- Type: [`CommandKit`](/docs/typedef/CommandKit)
9+
- Type: [`CommandKit`](/docs/classes/CommandKit)
1010

1111
### `interaction`
1212

apps/docs/pages/docs/typedef/CommandKitButtonBuilderInteractionCollectorDispatchContextData.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Extends `Omit<InteractionCollectorOptions<ButtonInteraction>, 'filter' | 'compon
66

77
The message to listen for button interactions on.
88

9-
- Type: [Message](https://discord.js.org/docs/packages/discord.js/main/Message:Class)
9+
- Type: [`Message`](https://discord.js.org/docs/packages/discord.js/main/Message:Class)
1010

1111
### `time`
1212

apps/docs/pages/docs/typedef/ContextMenuCommandProps.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
### `handler`
88

9-
- Type: [`CommandKit`](/docs/typedef/CommandKit)
9+
- Type: [`CommandKit`](/docs/classes/CommandKit)
1010

1111
### `interaction`
1212

apps/docs/pages/docs/typedef/SlashCommandProps.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
### `handler`
88

9-
- Type: [`CommandKit`](/typedef/CommandKit)
9+
- Type: [`CommandKit`](/docs/classes/CommandKit)
1010

1111
### `interaction`
1212

apps/docs/pages/docs/typedef/ValidationProps.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
### `handler`
1212

13-
- Type: [`CommandKit`](/docs/typedef/CommandKit)
13+
- Type: [`CommandKit`](/docs/classes/CommandKit)
1414

1515
### `interaction`
1616

apps/docs/pages/guide/buttonkit.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Whether or not the collector should automatically reset the timer when a button
174174

175175
## Handle collector end
176176

177-
When setting up an `onClick()` method using ButtonKit, you may also want to run some code after the collector ends running. The default timeout is 1 day, but you can modify this in [onClickOptions#time](/guide/buttonkit#time-optional). To handle when the collector ends, you can setup an `onEnd()` method like this:
177+
When setting up an `onClick()` method using ButtonKit, you may also want to run some code after the collector ends running. The default timeout is 1 day, but you can modify this in [`onClickOptions#time`](/guide/buttonkit#time-optional). To handle when the collector ends, you can setup an `onEnd()` method like this:
178178

179179
```js copy {16-21}
180180
const myButton = new ButtonKit()

apps/docs/pages/guide/commandkit-setup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,4 @@ This is used to disable CommandKit's built-in validation functions. Setting this
165165
- Type: `boolean`
166166
- Default: `false`
167167
168-
This is used to change the behaviour of how CommandKit loads application commands. By default it's one-by-one while comparing changes. Setting this option to `true` will load application commands all at once on every restart, and when [`reloadCommands()`](/docs/typedef/CommandKit#reloadcommands) is called.
168+
This is used to change the behaviour of how CommandKit loads application commands. By default it's one-by-one while comparing changes. Setting this option to `true` will load application commands all at once on every restart, and when [`reloadCommands()`](/docs/classes/CommandKit#reloadcommands) is called.

apps/docs/pages/guide/create-commandkit.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ When running create-commandkit, you should be asked the following questions:
3434

3535
- **Package Manager:** Lets you choose which package manager to use — npm, pnpm, or Yarn.
3636

37-
- **Language ([Development version](/guide/installation#development-version) only):** The language to use for your project — JavaScript or TypeScript.
37+
- **Language ([Development version](/guide/create-commandkit#development-version) only):** The language to use for your project — JavaScript or TypeScript.
3838

3939
- **Module Type:** Allows you to pick between CommonJS (using require and module.exports), and ESM (using import and export).
4040

0 commit comments

Comments
 (0)