Skip to content

Commit 884cc0f

Browse files
committed
add class links
1 parent a8f7488 commit 884cc0f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

apps/website/docs/guide/03-events/01-discordjs-events.mdx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,13 @@ it as one of the handler functions for the `"ready"` event.
6868
Just like the Discord.js `client.on()` method, the parameters you
6969
receive in your event file will be based on what event you're trying
7070
to handle. In the example above, the `"ready"` event should give you a
71-
`Client` instance.
71+
[`Client`](https://discord.js.org/docs/packages/discord.js/main/Client:Class)
72+
instance.
7273

7374
If you were to, for example, handle the `"messageCreate"` event, you
74-
would get a `Message` instance.
75+
would get a
76+
[`Message`](https://discord.js.org/docs/packages/discord.js/main/Message:Class)
77+
instance.
7578

7679
### Events with multiple parameters
7780

@@ -91,8 +94,11 @@ export default function (oldMessage: Message, newMessage: Message) {
9194
### Additional parameters
9295

9396
Outside of the parameters provided by Discord.js, CommandKit will pass
94-
additional parameters to the event handler, including a `Client` and
95-
`CommandKit` instance.
97+
additional parameters to the event handler, including a
98+
[`Client`](https://discord.js.org/docs/packages/discord.js/main/Client:Class)
99+
and
100+
[`CommandKit`](../../api-reference/commandkit/classes/command-kit.mdx)
101+
instance.
96102

97103
```ts title="src/app/events/messageCreate/log.ts"
98104
import type { CommandKit } from 'commandkit';

0 commit comments

Comments
 (0)