create-commandkit 1.1.4-dev.20250818114859 → 1.2.0-dev.20250818125640

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.20250818114859",
4
+ "version": "1.2.0-dev.20250818125640",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
7
7
  "bin": "./dist/index.js",
@@ -39,7 +39,7 @@
39
39
  "@types/gradient-string": "^1.1.5",
40
40
  "@types/node": "^22.0.0",
41
41
  "typescript": "^5.8.3",
42
- "tsconfig": "0.0.0-dev.20250818114859"
42
+ "tsconfig": "0.0.0-dev.20250818125640"
43
43
  },
44
44
  "scripts": {
45
45
  "check-types": "tsc --noEmit",
@@ -1,8 +1,10 @@
1
1
  import { Logger } from 'commandkit/logger';
2
2
 
3
3
  /**
4
- * @param {import('discord.js').Client<true>} client
4
+ * @type {import('commandkit').EventHandler<'ready'>}
5
5
  */
6
- export default function log(client) {
6
+ const handler = async (client) => {
7
7
  Logger.info(`Logged in as ${client.user.username}!`);
8
- }
8
+ };
9
+
10
+ export default handler;
@@ -1,6 +1,8 @@
1
- import type { Client } from 'discord.js';
1
+ import type { EventHandler } from 'commandkit';
2
2
  import { Logger } from 'commandkit/logger';
3
3
 
4
- export default function log(client: Client<true>) {
4
+ const handler: EventHandler<'ready'> = async (client) => {
5
5
  Logger.info(`Logged in as ${client.user.username}!`);
6
- }
6
+ };
7
+
8
+ export default handler;