necord 5.8.0 → 5.8.2

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/CHANGELOG.md CHANGED
@@ -1,6 +1,22 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ # [5.8.1](https://github.com/necordjs/necord/compare/v5.8.0...v5.8.1) - (2023-05-10)
5
+
6
+ ## Bug Fixes
7
+
8
+ - Allow register command when getting error ([f872895](https://github.com/necordjs/necord/commit/f872895b99d87435a49f951a325bec9b8347f9b4))
9
+
10
+ # [5.8.0](https://github.com/necordjs/necord/compare/v5.7.3...v5.8.0) - (2023-04-25)
11
+
12
+ ## Features
13
+
14
+ - Add methods for discovery #710 ([783bb98](https://github.com/necordjs/necord/commit/783bb986e593222b0c5d03ab980d5cc15517311a))
15
+
16
+ ## Refactor
17
+
18
+ - Rename interface ([71e6bee](https://github.com/necordjs/necord/commit/71e6beefdc4fb260a8b9b57f4a0f9d284f1be8dc))
19
+
4
20
  # [5.7.3](https://github.com/necordjs/necord/compare/v5.7.2...v5.7.3) - (2023-04-17)
5
21
 
6
22
  ## Refactor
@@ -66,7 +66,9 @@ let CommandsService = CommandsService_1 = class CommandsService {
66
66
  }
67
67
  this.logger.log(`Started refreshing application commands.`);
68
68
  for (const guild of this.applicationCommands.keys()) {
69
- yield this.registerInGuild(guild);
69
+ yield this.registerInGuild(guild).catch(error => {
70
+ this.logger.error(`Failed to register application commands (${guild ? `in guild ${guild}` : 'global'}): ${error}`);
71
+ });
70
72
  }
71
73
  this.logger.log(`Successfully reloaded application commands.`);
72
74
  });
@@ -7,6 +7,7 @@ export declare const IntegerOption: (data: {
7
7
  min_value?: number;
8
8
  max_value?: number;
9
9
  autocomplete: true;
10
+ choices?: [];
10
11
  } | {
11
12
  name: string;
12
13
  description: string;
@@ -7,6 +7,7 @@ export declare const NumberOption: (data: {
7
7
  min_value?: number;
8
8
  max_value?: number;
9
9
  autocomplete: true;
10
+ choices?: [];
10
11
  } | {
11
12
  name: string;
12
13
  description: string;
@@ -5,6 +5,7 @@ export declare const StringOption: (data: {
5
5
  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>>;
6
6
  required?: boolean;
7
7
  autocomplete: true;
8
+ choices?: [];
8
9
  min_length?: number;
9
10
  max_length?: number;
10
11
  } | {
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": "5.8.0",
4
+ "version": "5.8.2",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && tsc -p tsconfig.build.json",
7
7
  "prepublish:npm": "npm run build",
@@ -55,26 +55,26 @@
55
55
  "path-to-regexp": "6.2.1"
56
56
  },
57
57
  "devDependencies": {
58
- "@commitlint/cli": "17.6.1",
59
- "@commitlint/config-angular": "17.6.1",
58
+ "@commitlint/cli": "17.6.3",
59
+ "@commitlint/config-angular": "17.6.3",
60
60
  "@favware/npm-deprecate": "1.0.7",
61
61
  "@nestjs/common": "9.4.0",
62
62
  "@nestjs/core": "9.4.0",
63
- "@types/node": "18.16.0",
64
- "@typescript-eslint/eslint-plugin": "5.59.1",
65
- "@typescript-eslint/parser": "5.59.1",
66
- "discord-api-types": "0.37.40",
67
- "discord.js": "14.9.0",
68
- "eslint": "8.39.0",
63
+ "@types/node": "20.1.1",
64
+ "@typescript-eslint/eslint-plugin": "5.59.5",
65
+ "@typescript-eslint/parser": "5.59.5",
66
+ "discord-api-types": "0.37.42",
67
+ "discord.js": "14.11.0",
68
+ "eslint": "8.40.0",
69
69
  "eslint-config-prettier": "8.8.0",
70
70
  "eslint-plugin-prettier": "4.2.1",
71
71
  "husky": "8.0.3",
72
- "lint-staged": "13.2.1",
72
+ "lint-staged": "13.2.2",
73
73
  "prettier": "2.8.8",
74
74
  "reflect-metadata": "0.1.13",
75
- "release-it": "15.10.1",
75
+ "release-it": "15.10.3",
76
76
  "rimraf": "5.0.0",
77
- "rxjs": "7.8.0",
77
+ "rxjs": "7.8.1",
78
78
  "ts-node": "10.9.1",
79
79
  "typescript": "5.0.4"
80
80
  },