necord 6.8.6 → 6.8.7-dev.1737721767.9cce6ef

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.
@@ -0,0 +1 @@
1
+ npx commitlint --config .commitlintrc.json --edit $HUSKY_GIT_PARAMS
@@ -0,0 +1 @@
1
+ npx lint-staged
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Alexey Filippov
3
+ Copyright (c) 2021-2025 Alexey Filippov
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -58,5 +58,18 @@ export declare class SlashCommandDiscovery extends CommandDiscovery<SlashCommand
58
58
  /**
59
59
  * Returns the JSON representation of the discovery.
60
60
  */
61
- toJSON(): any;
61
+ toJSON(): {
62
+ options: any;
63
+ type?: ApplicationCommandType.ChatInput | ApplicationCommandOptionType.SubcommandGroup | ApplicationCommandOptionType.Subcommand;
64
+ guilds?: Snowflake[];
65
+ description: string;
66
+ descriptionLocalizations?: import("discord.js").LocalizationMap;
67
+ name: string;
68
+ nameLocalizations?: import("discord.js").LocalizationMap;
69
+ dmPermission?: boolean;
70
+ defaultMemberPermissions?: import("discord.js").PermissionResolvable | null;
71
+ nsfw?: boolean;
72
+ contexts?: readonly import("discord.js").InteractionContextType[];
73
+ integrationTypes?: readonly import("discord.js").ApplicationIntegrationType[];
74
+ };
62
75
  }
@@ -1,10 +1,10 @@
1
- import { ChannelSelectMenuInteraction, MentionableSelectMenuInteraction, RoleSelectMenuInteraction, UserSelectMenuInteraction } from 'discord.js';
1
+ import { ChannelSelectMenuInteraction, RoleSelectMenuInteraction, UserSelectMenuInteraction } from 'discord.js';
2
2
  export declare const SelectedStrings: (...dataOrPipes: any[]) => ParameterDecorator;
3
3
  export type ISelectedChannels = ChannelSelectMenuInteraction['channels'];
4
4
  export declare const SelectedChannels: (...dataOrPipes: any[]) => ParameterDecorator;
5
- export type ISelectedUsers = UserSelectMenuInteraction['users'] | MentionableSelectMenuInteraction['users'];
5
+ export type ISelectedUsers = UserSelectMenuInteraction['users'];
6
6
  export declare const SelectedUsers: (...dataOrPipes: any[]) => ParameterDecorator;
7
- export type ISelectedMembers = UserSelectMenuInteraction['members'] | MentionableSelectMenuInteraction['members'];
7
+ export type ISelectedMembers = UserSelectMenuInteraction['members'];
8
8
  export declare const SelectedMembers: (...dataOrPipes: any[]) => ParameterDecorator;
9
- export type ISelectedRoles = RoleSelectMenuInteraction['roles'] | MentionableSelectMenuInteraction['roles'];
9
+ export type ISelectedRoles = RoleSelectMenuInteraction['roles'];
10
10
  export declare const SelectedRoles: (...dataOrPipes: any[]) => ParameterDecorator;
@@ -47,7 +47,7 @@ let TextCommandsModule = class TextCommandsModule {
47
47
  return;
48
48
  const content = message.content.toLowerCase();
49
49
  const prefix = typeof this.options.prefix !== 'function'
50
- ? (_b = this.options.prefix) !== null && _b !== void 0 ? _b : '!'
50
+ ? ((_b = this.options.prefix) !== null && _b !== void 0 ? _b : '!')
51
51
  : yield this.options.prefix(message);
52
52
  if (!prefix || !content.startsWith(prefix))
53
53
  return;
@@ -0,0 +1,54 @@
1
+ import eslint from '@eslint/js';
2
+ import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
3
+ import globals from 'globals';
4
+ import tseslint from 'typescript-eslint';
5
+
6
+ export default tseslint.config(
7
+ {
8
+ ignores: ['node_modules', '**/node_modules/**', '**/*.js', '**/*.d.ts']
9
+ },
10
+ eslint.configs.recommended,
11
+ ...tseslint.configs.recommendedTypeChecked,
12
+ eslintPluginPrettierRecommended,
13
+ {
14
+ languageOptions: {
15
+ globals: {
16
+ ...globals.node,
17
+ ...globals.jest
18
+ },
19
+ ecmaVersion: 5,
20
+ sourceType: 'module',
21
+ parserOptions: {
22
+ project: ['tsconfig.json', 'tsconfig.build.json', 'tsconfig.spec.json'],
23
+ projectService: true,
24
+ tsconfigRootDir: import.meta.dirname
25
+ }
26
+ }
27
+ },
28
+ {
29
+ rules: {
30
+ '@typescript-eslint/no-explicit-any': 'off',
31
+ '@typescript-eslint/no-unsafe-assignment': 'off',
32
+ '@typescript-eslint/no-unsafe-call': 'off',
33
+ '@typescript-eslint/no-unsafe-member-access': 'off',
34
+ '@typescript-eslint/no-unsafe-function-type': 'off',
35
+ '@typescript-eslint/no-unsafe-argument': 'off',
36
+ '@typescript-eslint/no-unsafe-return': 'off',
37
+ '@typescript-eslint/no-unused-expressions': 'off',
38
+ '@typescript-eslint/no-require-imports': 'off',
39
+ '@typescript-eslint/no-unused-vars': 'off',
40
+ '@typescript-eslint/no-misused-promises': [
41
+ 'error',
42
+ {
43
+ checksVoidReturn: false,
44
+ checksConditionals: false
45
+ }
46
+ ],
47
+ '@typescript-eslint/require-await': 'off',
48
+ '@typescript-eslint/prefer-promise-reject-errors': 'off',
49
+ '@typescript-eslint/no-base-to-string': 'off',
50
+ '@typescript-eslint/unbound-method': 'off',
51
+ '@typescript-eslint/only-throw-error': 'off'
52
+ }
53
+ }
54
+ );
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "necord",
3
3
  "description": "A module for creating Discord bots using NestJS, based on Discord.js",
4
- "version": "6.8.6",
4
+ "version": "6.8.7-dev.1737721767.9cce6ef",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && tsc -p tsconfig.build.json",
7
7
  "prepublish:npm": "npm run build",
8
8
  "publish:npm": "release-it",
9
9
  "prepublish:dev": "npm run build",
10
10
  "publish:dev": "npm publish --access public --tag dev",
11
- "prepare": "husky install .github/husky",
11
+ "prepare": "husky",
12
12
  "format": "prettier --write \"src/**/*.ts\"",
13
- "lint": "eslint --ignore-path .gitignore src/**/*.ts",
13
+ "lint": "eslint --ignore-pattern .gitignore src/**/*.ts",
14
14
  "changelog": "git cliff --prepend ./CHANGELOG.md -l --current -c ./cliff.toml -r ."
15
15
  },
16
16
  "lint-staged": {
@@ -52,37 +52,40 @@
52
52
  "Alexey Filippov <socket.someone@gmail.com>"
53
53
  ],
54
54
  "dependencies": {
55
- "path-to-regexp": "8.0.0"
55
+ "path-to-regexp": "8.2.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@commitlint/cli": "19.4.1",
59
- "@commitlint/config-angular": "19.4.1",
60
- "@favware/npm-deprecate": "1.0.7",
61
- "@nestjs/common": "10.4.1",
62
- "@nestjs/core": "10.4.1",
63
- "@types/node": "22.5.4",
64
- "@typescript-eslint/eslint-plugin": "7.0.0",
65
- "@typescript-eslint/parser": "6.21.0",
66
- "discord-api-types": "0.37.100",
67
- "discord.js": "14.16.1",
68
- "eslint": "8.57.0",
69
- "eslint-config-prettier": "9.1.0",
70
- "eslint-plugin-prettier": "5.2.1",
71
- "husky": "9.1.5",
72
- "lint-staged": "15.2.10",
73
- "prettier": "3.3.3",
58
+ "@commitlint/cli": "19.6.1",
59
+ "@commitlint/config-angular": "19.7.0",
60
+ "@eslint/eslintrc": "^3.2.0",
61
+ "@eslint/js": "^9.18.0",
62
+ "@favware/npm-deprecate": "2.0.0",
63
+ "@nestjs/common": "11.0.5",
64
+ "@nestjs/core": "11.0.5",
65
+ "@types/node": "22.10.10",
66
+ "discord-api-types": "0.37.117",
67
+ "discord.js": "14.17.3",
68
+ "eslint": "^9.18.0",
69
+ "eslint-config-prettier": "10.0.1",
70
+ "eslint-plugin-import": "^2.31.0",
71
+ "eslint-plugin-prettier": "5.2.3",
72
+ "globals": "^15.14.0",
73
+ "husky": "9.1.7",
74
+ "lint-staged": "15.4.2",
75
+ "prettier": "3.4.2",
74
76
  "reflect-metadata": "0.2.2",
75
- "release-it": "17.6.0",
77
+ "release-it": "18.1.2",
76
78
  "rimraf": "6.0.1",
77
79
  "rxjs": "7.8.1",
78
80
  "ts-node": "10.9.2",
79
- "typescript": "5.5.4"
81
+ "typescript": "5.7.3",
82
+ "typescript-eslint": "^8.21.0"
80
83
  },
81
84
  "peerDependencies": {
82
- "@nestjs/common": "^10.2.0",
83
- "@nestjs/core": "^10.2.0",
84
- "discord.js": "^14.0.1",
85
+ "@nestjs/common": "^10.2.0 || ^11.0.0",
86
+ "@nestjs/core": "^10.2.0 || ^11.0.0",
85
87
  "discord-api-types": "^0.37.99",
88
+ "discord.js": "^14.0.1",
86
89
  "reflect-metadata": "^0.2.1",
87
90
  "rxjs": "^7.2.0"
88
91
  },