Skip to content

Commit

Permalink
use commandkit.dev as primary domain
Browse files Browse the repository at this point in the history
  • Loading branch information
notunderctrl committed Dec 14, 2024
1 parent 32b0230 commit 4add8b3
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ If you are looking for support or want to provide suggestions, check out the [Di

## Links

- [Website](https://commandkit.js.org) ([source](https://github.com/underctrl-io/commandkit/tree/main/apps/docs))
- [Website](https://commandkit.dev) ([source](https://github.com/underctrl-io/commandkit/tree/main/apps/docs))
- [Support Server](https://ctrl.lol/discord)
- [CommandKit source](https://github.com/underctrl-io/commandkit/tree/main/packages/commandkit)
- [npm](https://www.npmjs.com/package/commandkit)
Expand Down
8 changes: 4 additions & 4 deletions apps/docs/content/guide/command-file-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -281,27 +281,27 @@ Here's an example of how to use the `autocomplete` function:

### `data`

- Type: [`CommandData`](/docs/typedef/CommandData) | [`SlashCommandBuilder`](https://discord.js.org/docs/packages/builders/main/SlashCommandBuilder:Class) | [`ContextMenuCommandBuilder`](https://discord.js.org/docs/packages/builders/main/ContextMenuCommandBuilder:Class)
- Type: [`CommandData`](/docs/types/CommandData) | [`SlashCommandBuilder`](https://discord.js.org/docs/packages/builders/main/SlashCommandBuilder:Class) | [`ContextMenuCommandBuilder`](https://discord.js.org/docs/packages/builders/main/ContextMenuCommandBuilder:Class)

This property contains the command's structural information, and is required to register and handle commands.

### `run`

- Type: `void`

- Props Type: [`SlashCommandProps`](/docs/typedef/SlashCommandProps) | [`ContextMenuCommandProps`](/docs/typedef/ContextMenuCommandProps)
- Props Type: [`SlashCommandProps`](/docs/types/SlashCommandProps) | [`ContextMenuCommandProps`](/docs/types/ContextMenuCommandProps)

This function will be called when the command is executed.

### `autocomplete`

- Type: `void`
- Props Type: [`AutocompleteProps`](/docs/typedef/AutocompleteProps)
- Props Type: [`AutocompleteProps`](/docs/types/AutocompleteProps)

This function will be called when an autocomplete interaction event is triggered for any option set as autocomplete in this command's `data` object.

### `options` (optional)

- Type: [`CommandOptions`](/docs/typedef/CommandOptions)
- Type: [`CommandOptions`](/docs/types/CommandOptions)

This property contains the command's registration/handling behaviour.
4 changes: 2 additions & 2 deletions packages/commandkit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ CommandKit is a library that makes it easy to handle commands and events in your

## Documentation

You can find the full documentation [here](https://commandkit.js.org).
You can find the full documentation [here](https://commandkit.dev).

## Installation

Expand Down Expand Up @@ -62,7 +62,7 @@ npm install commandkit@dev
## Usage

This is a simple overview of how to set up this library with all the options. You can read more in the [full documentation](https://commandkit.js.org)
This is a simple overview of how to set up this library with all the options. You can read more in the [full documentation](https://commandkit.dev)

```js
// index.js
Expand Down
2 changes: 1 addition & 1 deletion packages/commandkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"url": "https://github.com/underctrl-io/commandkit",
"directory": "packages/commandkit"
},
"homepage": "https://commandkit.js.org",
"homepage": "https://commandkit.dev",
"keywords": [
"discord.js",
"command handler",
Expand Down
2 changes: 1 addition & 1 deletion packages/commandkit/src/CommandKit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class CommandKit {
* Create a new command and event handler with CommandKit.
*
* @param options - The default CommandKit configuration.
* @see {@link https://commandkit.js.org/guide/commandkit-setup}
* @see {@link https://commandkit.dev/guide/commandkit-setup}
*/
constructor(options: CommandKitOptions) {
if (!options.client) {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-commandkit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ create-commandkit is a CLI utility to quickly instantiate a Discord bot with Com

## Documentation

You can find the full documentation [here](https://commandkit.js.org).
You can find the full documentation [here](https://commandkit.dev).

## Usage

Expand Down
2 changes: 1 addition & 1 deletion packages/create-commandkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"url": "https://github.com/underctrl-io/commandkit",
"directory": "packages/create-commandkit"
},
"homepage": "https://commandkit.js.org",
"homepage": "https://commandkit.dev",
"scripts": {
"lint": "tsc --noEmit",
"dev": "tsup --watch",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-commandkit/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ export const commandkit = gradient(textColors.commandkit)('CommandKit');
export const outroMsg = `
${gradient(textColors.commandkit)('Thank you for choosing CommandKit!')}
• Documentation: ${colors.blue('https://commandkit.js.org')}
• Documentation: ${colors.blue('https://commandkit.dev')}
• Join us on Discord: ${colors.blue('https://ctrl.lol/discord')}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Thanks for choosing CommandKit to build your Discord bot!

## Useful links

- [Documentation](https://commandkit.js.org)
- [Documentation](https://commandkit.dev)
- [Discord](https://ctrl.lol/discord)
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ module.exports = {

/** @type {import('commandkit').CommandOptions} */
options: {
// https://commandkit.js.org/typedef/CommandOptions
// https://commandkit.dev/docs/types/CommandOptions
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Thanks for choosing CommandKit to build your Discord bot!

## Useful links

- [Documentation](https://commandkit.js.org)
- [Documentation](https://commandkit.dev)
- [Discord](https://ctrl.lol/discord)
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export const run = ({ interaction }) => {

/** @type {import('commandkit').CommandOptions} */
export const options = {
// https://commandkit.js.org/typedef/CommandOptions
// https://commandkit.dev/docs/types/CommandOptions
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Thanks for choosing CommandKit to build your Discord bot!

## Useful links

- [Documentation](https://commandkit.js.org)
- [Documentation](https://commandkit.dev)
- [Discord](https://ctrl.lol/discord)
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ export const run = ({ interaction }: SlashCommandProps) => {
};

export const options: CommandOptions = {
// https://commandkit.js.org/typedef/CommandOptions
// https://commandkit.dev/docs/types/CommandOptions
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Thanks for choosing CommandKit to build your Discord bot!

## Useful links

- [Documentation](https://commandkit.js.org)
- [Documentation](https://commandkit.dev)
- [Discord](https://ctrl.lol/discord)
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ export const run = ({ interaction }: SlashCommandProps) => {
};

export const options: CommandOptions = {
// https://commandkit.js.org/typedef/CommandOptions
// https://commandkit.dev/docs/types/CommandOptions
};

0 comments on commit 4add8b3

Please sign in to comment.