create-commandkit 1.1.4-dev.20250411164423 → 1.1.4-dev.20250414064911
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ export const command = {
|
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* @param {import('commandkit').
|
|
10
|
+
* @param {import('commandkit').ChatInputCommandContext} ctx
|
|
11
11
|
*/
|
|
12
12
|
export const chatInput = async (ctx) => {
|
|
13
13
|
const latency = (ctx.client.ws.ping ?? -1).toString();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChatInputCommand, MessageCommand, CommandData } from 'commandkit';
|
|
2
2
|
|
|
3
3
|
export const command: CommandData = {
|
|
4
4
|
name: 'ping',
|
|
5
5
|
description: "Ping the bot to check if it's online.",
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
export const chatInput:
|
|
8
|
+
export const chatInput: ChatInputCommand = async (ctx) => {
|
|
9
9
|
const latency = (ctx.client.ws.ping ?? -1).toString();
|
|
10
10
|
const response = `Pong! Latency: ${latency}ms`;
|
|
11
11
|
|