necord 6.8.1 → 6.8.3-dev.1712710491.64d6852

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.
@@ -10,18 +10,18 @@ export declare const IntegerOption: (data: {
10
10
  name_localizations?: Partial<Record<"id" | "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "sv-SE" | "th" | "tr" | "uk" | "vi", string>>;
11
11
  description_localizations?: Partial<Record<"id" | "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "sv-SE" | "th" | "tr" | "uk" | "vi", string>>;
12
12
  required?: boolean;
13
- autocomplete: true;
14
- choices?: [];
15
13
  min_value?: number;
16
14
  max_value?: number;
15
+ autocomplete: true;
16
+ choices?: [];
17
17
  } | {
18
18
  name: string;
19
19
  description: string;
20
20
  name_localizations?: Partial<Record<"id" | "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "sv-SE" | "th" | "tr" | "uk" | "vi", string>>;
21
21
  description_localizations?: Partial<Record<"id" | "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "sv-SE" | "th" | "tr" | "uk" | "vi", string>>;
22
22
  required?: boolean;
23
- autocomplete?: false;
24
- choices?: import("discord.js").APIApplicationCommandOptionChoice<number>[];
25
23
  min_value?: number;
26
24
  max_value?: number;
25
+ autocomplete?: false;
26
+ choices?: import("discord.js").APIApplicationCommandOptionChoice<number>[];
27
27
  }) => PropertyDecorator;
@@ -10,18 +10,18 @@ export declare const NumberOption: (data: {
10
10
  name_localizations?: Partial<Record<"id" | "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "sv-SE" | "th" | "tr" | "uk" | "vi", string>>;
11
11
  description_localizations?: Partial<Record<"id" | "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "sv-SE" | "th" | "tr" | "uk" | "vi", string>>;
12
12
  required?: boolean;
13
- autocomplete: true;
14
- choices?: [];
15
13
  min_value?: number;
16
14
  max_value?: number;
15
+ autocomplete: true;
16
+ choices?: [];
17
17
  } | {
18
18
  name: string;
19
19
  description: string;
20
20
  name_localizations?: Partial<Record<"id" | "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "sv-SE" | "th" | "tr" | "uk" | "vi", string>>;
21
21
  description_localizations?: Partial<Record<"id" | "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "sv-SE" | "th" | "tr" | "uk" | "vi", string>>;
22
22
  required?: boolean;
23
- autocomplete?: false;
24
- choices?: import("discord.js").APIApplicationCommandOptionChoice<number>[];
25
23
  min_value?: number;
26
24
  max_value?: number;
25
+ autocomplete?: false;
26
+ choices?: import("discord.js").APIApplicationCommandOptionChoice<number>[];
27
27
  }) => PropertyDecorator;
@@ -8,10 +8,12 @@ class NecordBaseDiscovery {
8
8
  this.reflector = new core_1.Reflector();
9
9
  }
10
10
  getClass() {
11
- return this.discovery.class;
11
+ var _a;
12
+ return (_a = this.discovery) === null || _a === void 0 ? void 0 : _a.class;
12
13
  }
13
14
  getHandler() {
14
- return this.discovery.handler;
15
+ var _a;
16
+ return (_a = this.discovery) === null || _a === void 0 ? void 0 : _a.handler;
15
17
  }
16
18
  setDiscoveryMeta(meta) {
17
19
  var _a;
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.1",
4
+ "version": "6.8.3-dev.1712710491.64d6852",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && tsc -p tsconfig.build.json",
7
7
  "prepublish:npm": "npm run build",
@@ -52,18 +52,18 @@
52
52
  "Alexey Filippov <socket.someone@gmail.com>"
53
53
  ],
54
54
  "dependencies": {
55
- "path-to-regexp": "6.2.1"
55
+ "path-to-regexp": "6.2.2"
56
56
  },
57
57
  "devDependencies": {
58
- "@commitlint/cli": "19.2.0",
58
+ "@commitlint/cli": "19.2.1",
59
59
  "@commitlint/config-angular": "19.1.0",
60
60
  "@favware/npm-deprecate": "1.0.7",
61
- "@nestjs/common": "10.3.3",
62
- "@nestjs/core": "10.3.3",
63
- "@types/node": "20.11.27",
61
+ "@nestjs/common": "10.3.7",
62
+ "@nestjs/core": "10.3.7",
63
+ "@types/node": "20.12.6",
64
64
  "@typescript-eslint/eslint-plugin": "7.0.0",
65
65
  "@typescript-eslint/parser": "6.21.0",
66
- "discord-api-types": "0.37.74",
66
+ "discord-api-types": "0.37.79",
67
67
  "discord.js": "14.14.1",
68
68
  "eslint": "8.57.0",
69
69
  "eslint-config-prettier": "9.1.0",
@@ -71,12 +71,12 @@
71
71
  "husky": "9.0.11",
72
72
  "lint-staged": "15.2.2",
73
73
  "prettier": "3.2.5",
74
- "reflect-metadata": "0.2.1",
74
+ "reflect-metadata": "0.2.2",
75
75
  "release-it": "17.1.1",
76
76
  "rimraf": "5.0.5",
77
77
  "rxjs": "7.8.1",
78
78
  "ts-node": "10.9.2",
79
- "typescript": "5.4.2"
79
+ "typescript": "5.4.4"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "@nestjs/common": "^10.2.0",