Skip to content

Commit 2f61878

Browse files
committed
fix whitespace
1 parent 5729bbd commit 2f61878

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

apps/docs/src/content/docs/guides/command-file-setup.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ This is a simple overview of how to set up a simple "ping" slash command that si
5757
},
5858
```
5959
</TabItem>
60-
60+
6161
<TabItem label="TypeScript">
6262
```ts
6363
// commands/misc/ping.ts
6464
import type { CommandData, SlashCommandProps, CommandOptions } from 'commandkit';
65-
65+
6666
export const data: CommandData = {
6767
name: 'ping',
6868
description: 'Pong!',
@@ -93,9 +93,9 @@ Every command file must export an object with the following properties:
9393
This can also be set to the [`SlashCommandBuilder`](https://discord.js.org/docs/packages/builders/0.16.0/SlashCommandBuilder:Class) class, or the [`ContextMenuCommandBuilder`](https://discord.js.org/docs/packages/builders/0.16.0/ContextMenuCommandBuilder:Class) class if that's what you're comfortable with.
9494

9595
- `run` - A function that will be called when your command is executed. This function also has an object passed to it as an argument with the following properties:
96-
- `interaction` - The interaction object that triggered the command. This can either be a [chat input command interaction](https://old.discordjs.dev/#/docs/discord.js/main/class/ChatInputCommandInteraction) or a [context menu command interaction](https://old.discordjs.dev/#/docs/discord.js/main/class/ContextMenuCommandInteraction).
97-
- `client` - The Discord [client object](https://old.discordjs.dev/#/docs/discord.js/main/class/Client).
98-
- `handler` - The current [CommandKit instance](/api/classes/classcommandkit/).
96+
- `interaction` - The interaction object that triggered the command. This can either be a [chat input command interaction](https://old.discordjs.dev/#/docs/discord.js/main/class/ChatInputCommandInteraction) or a [context menu command interaction](https://old.discordjs.dev/#/docs/discord.js/main/class/ContextMenuCommandInteraction).
97+
- `client` - The Discord [client object](https://old.discordjs.dev/#/docs/discord.js/main/class/Client).
98+
- `handler` - The current [CommandKit instance](/api/classes/classcommandkit/).
9999

100100
### Optional properties
101101

apps/docs/src/content/docs/guides/commandkit-setup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ This is a simple overview of how to set up CommandKit with all the available opt
7272
client.login('YOUR_TOKEN_HERE');
7373
```
7474
</TabItem>
75-
75+
7676
<TabItem label="TypeScript">
7777
```js
7878
// index.ts

apps/docs/src/content/docs/guides/event-file-setup.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ This is a simple overview of how to set up a simple function that is called when
3939
};
4040
```
4141
</TabItem>
42+
4243
</Tabs>
4344

4445
### Parameters explained
@@ -83,6 +84,7 @@ To better understand how the parameters work, here's another example but with th
8384
};
8485
```
8586
</TabItem>
87+
8688
</Tabs>
8789

8890
In this example you can see that the first parameter is the `message` object that was returned as a parameter when the "messageCreate" event was triggered. The `client` parameter is the same as the previous example.
@@ -109,7 +111,7 @@ But what if an event returns multiple parameters? Let's take for example the "me
109111
};
110112
```
111113
</TabItem>
112-
114+
113115
<TabItem label="TypeScript">
114116
```js
115117
// events/messageUpdate/log-message-update.ts
@@ -156,7 +158,7 @@ The code above is just a simple example of how to set up an event function. But
156158
}
157159
```
158160
</TabItem>
159-
161+
160162
<TabItem label="TypeScript">
161163
```js
162164
// events/messageCreate/say-hi.ts

apps/docs/src/content/docs/guides/validation-file-setup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Custom validation functions are called before the built-in validations provided
5151
};
5252
```
5353
</TabItem>
54-
54+
5555
<TabItem label="TypeScript">
5656
```js
5757
// validations/cooldowns.js

0 commit comments

Comments
 (0)