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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-commandkit",
3
3
  "description": "Effortlessly create a CommandKit project",
4
- "version": "1.1.4-dev.20250411164423",
4
+ "version": "1.1.4-dev.20250414064911",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
7
7
  "bin": "./dist/index.js",
@@ -7,7 +7,7 @@ export const command = {
7
7
  };
8
8
 
9
9
  /**
10
- * @param {import('commandkit').SlashCommandContext} ctx
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 { SlashCommand, MessageCommand, CommandData } from 'commandkit';
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: SlashCommand = async (ctx) => {
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