Skip to content

Commit 0e979a2

Browse files
authored
Merge branch 'main' into feat/more-structures
2 parents e569a99 + 7349a6e commit 0e979a2

File tree

38 files changed

+318
-422
lines changed

38 files changed

+318
-422
lines changed

packages/create-discord-bot/template/Bun/JavaScript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"eslint-config-neon": "^0.2.9",
2020
"eslint-formatter-pretty": "^7.0.0",
2121
"prettier": "^3.6.2",
22-
"zod": "^3.25.76"
22+
"zod": "^4.1.12"
2323
}
2424
}

packages/create-discord-bot/template/Bun/TypeScript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
"eslint-formatter-pretty": "^7.0.0",
2323
"prettier": "^3.6.2",
2424
"typescript": "~5.9.3",
25-
"zod": "^3.25.76"
25+
"zod": "^4.1.12"
2626
}
2727
}

packages/create-discord-bot/template/Deno/deno.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
"imports": {
2222
"@discordjs/core": "npm:@discordjs/core@^2.3.0",
2323
"discord.js": "npm:discord.js@^14.24.2",
24-
"zod": "npm:zod@^3.25.76",
24+
"zod": "npm:zod@^4.1.12",
2525
},
2626
}

packages/create-discord-bot/template/Deno/src/commands/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export type Command = {
2222
* Defines the schema for a command
2323
*/
2424
export const schema = z.object({
25-
data: z.record(z.any()),
25+
data: z.record(z.string(), z.any()),
2626
execute: z.function(),
2727
});
2828

packages/create-discord-bot/template/Deno/src/events/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type Event<EventName extends keyof ClientEvents = keyof ClientEvents> = {
1919
/**
2020
* Whether or not the event should only be listened to once
2121
*
22-
* @defaultValue false
22+
* @defaultValue `false`
2323
*/
2424
once?: boolean;
2525
};

packages/create-discord-bot/template/JavaScript/.eslintrc.json

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import common from 'eslint-config-neon/common';
2+
import node from 'eslint-config-neon/node';
3+
import prettier from 'eslint-config-neon/prettier';
4+
5+
const config = [
6+
{
7+
ignores: [],
8+
},
9+
...common,
10+
...node,
11+
...prettier,
12+
{
13+
rules: {
14+
'jsdoc/check-tag-names': 0,
15+
'jsdoc/no-undefined-types': 0,
16+
'jsdoc/valid-types': 0,
17+
},
18+
},
19+
];
20+
21+
export default config;

packages/create-discord-bot/template/JavaScript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"eslint-config-neon": "^0.2.9",
2020
"eslint-formatter-pretty": "^7.0.0",
2121
"prettier": "^3.6.2",
22-
"zod": "^3.25.76"
22+
"zod": "^4.1.12"
2323
},
2424
"engines": {
2525
"node": ">=22.12.0"

packages/create-discord-bot/template/JavaScript/src/commands/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { z } from 'zod';
1212
* Defines the schema for a command
1313
*/
1414
export const schema = z.object({
15-
data: z.record(z.any()),
15+
data: z.record(z.string(), z.any()),
1616
execute: z.function(),
1717
});
1818

packages/create-discord-bot/template/JavaScript/src/events/interactionCreate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { URL } from 'node:url';
12
import { Events } from 'discord.js';
23
import { loadCommands } from '../util/loaders.js';
34

0 commit comments

Comments
 (0)