necord 5.8.4 → 5.8.5-dev.1686877793.8e20f4f

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,12 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ # [5.8.4](https://github.com/necordjs/necord/compare/v5.8.3...v5.8.4) - (2023-05-10)
5
+
6
+ ## Bug Fixes
7
+
8
+ - Register commands to guild ([7f215de](https://github.com/necordjs/necord/commit/7f215de8a17e7b971442744f9692299312ac4f74))
9
+
4
10
  # [5.8.3](https://github.com/necordjs/necord/compare/v5.8.2...v5.8.3) - (2023-05-10)
5
11
 
6
12
  ## Bug Fixes
@@ -28,7 +28,7 @@ const necord_constants_1 = require("../necord.constants");
28
28
  const discord_js_1 = require("discord.js");
29
29
  const context_menus_1 = require("./context-menus");
30
30
  const slash_commands_1 = require("./slash-commands");
31
- let CommandsService = CommandsService_1 = class CommandsService {
31
+ let CommandsService = exports.CommandsService = CommandsService_1 = class CommandsService {
32
32
  constructor(client, options, contextMenusService, slashCommandsService) {
33
33
  this.client = client;
34
34
  this.options = options;
@@ -103,10 +103,9 @@ let CommandsService = CommandsService_1 = class CommandsService {
103
103
  return this.getGuildCommands(guildId).find(command => command.getName() === name);
104
104
  }
105
105
  };
106
- CommandsService = CommandsService_1 = __decorate([
106
+ exports.CommandsService = CommandsService = CommandsService_1 = __decorate([
107
107
  (0, common_1.Injectable)(),
108
108
  __param(1, (0, common_1.Inject)(necord_constants_1.NECORD_MODULE_OPTIONS)),
109
109
  __metadata("design:paramtypes", [discord_js_1.Client, Object, context_menus_1.ContextMenusService,
110
110
  slash_commands_1.SlashCommandsService])
111
111
  ], CommandsService);
112
- exports.CommandsService = CommandsService;
@@ -15,7 +15,7 @@ const discord_js_1 = require("discord.js");
15
15
  const common_1 = require("@nestjs/common");
16
16
  const necord_constants_1 = require("../../necord.constants");
17
17
  const necord_explorer_service_1 = require("../../necord-explorer.service");
18
- let ContextMenusService = ContextMenusService_1 = class ContextMenusService {
18
+ let ContextMenusService = exports.ContextMenusService = ContextMenusService_1 = class ContextMenusService {
19
19
  constructor(client, explorerService) {
20
20
  this.client = client;
21
21
  this.explorerService = explorerService;
@@ -53,9 +53,8 @@ let ContextMenusService = ContextMenusService_1 = class ContextMenusService {
53
53
  return type.toString().concat(':', name);
54
54
  }
55
55
  };
56
- ContextMenusService = ContextMenusService_1 = __decorate([
56
+ exports.ContextMenusService = ContextMenusService = ContextMenusService_1 = __decorate([
57
57
  (0, common_1.Injectable)(),
58
58
  __metadata("design:paramtypes", [discord_js_1.Client,
59
59
  necord_explorer_service_1.ExplorerService])
60
60
  ], ContextMenusService);
61
- exports.ContextMenusService = ContextMenusService;
@@ -20,7 +20,7 @@ const common_1 = require("@nestjs/common");
20
20
  const rxjs_1 = require("rxjs");
21
21
  const context_1 = require("../../../context");
22
22
  const discord_js_1 = require("discord.js");
23
- let AutocompleteInterceptor = class AutocompleteInterceptor {
23
+ let AutocompleteInterceptor = exports.AutocompleteInterceptor = class AutocompleteInterceptor {
24
24
  intercept(context, next) {
25
25
  return __awaiter(this, void 0, void 0, function* () {
26
26
  const necordContext = context_1.NecordExecutionContext.create(context);
@@ -33,7 +33,6 @@ let AutocompleteInterceptor = class AutocompleteInterceptor {
33
33
  });
34
34
  }
35
35
  };
36
- AutocompleteInterceptor = __decorate([
36
+ exports.AutocompleteInterceptor = AutocompleteInterceptor = __decorate([
37
37
  (0, common_1.Injectable)()
38
38
  ], AutocompleteInterceptor);
39
- exports.AutocompleteInterceptor = AutocompleteInterceptor;
@@ -25,7 +25,7 @@ const discord_js_1 = require("discord.js");
25
25
  const necord_constants_1 = require("../../necord.constants");
26
26
  const necord_explorer_service_1 = require("../../necord-explorer.service");
27
27
  const core_1 = require("@nestjs/core");
28
- let SlashCommandsService = SlashCommandsService_1 = class SlashCommandsService {
28
+ let SlashCommandsService = exports.SlashCommandsService = SlashCommandsService_1 = class SlashCommandsService {
29
29
  constructor(client, explorerService, reflector) {
30
30
  this.client = client;
31
31
  this.explorerService = explorerService;
@@ -80,10 +80,9 @@ let SlashCommandsService = SlashCommandsService_1 = class SlashCommandsService {
80
80
  return this.slashCommands.delete(commandName);
81
81
  }
82
82
  };
83
- SlashCommandsService = SlashCommandsService_1 = __decorate([
83
+ exports.SlashCommandsService = SlashCommandsService = SlashCommandsService_1 = __decorate([
84
84
  (0, common_1.Injectable)(),
85
85
  __metadata("design:paramtypes", [discord_js_1.Client,
86
86
  necord_explorer_service_1.ExplorerService,
87
87
  core_1.Reflector])
88
88
  ], SlashCommandsService);
89
- exports.SlashCommandsService = SlashCommandsService;
@@ -5,4 +5,4 @@ var NecordParamType;
5
5
  (function (NecordParamType) {
6
6
  NecordParamType[NecordParamType["CONTEXT"] = 0] = "CONTEXT";
7
7
  NecordParamType[NecordParamType["DISCOVERY"] = 1] = "DISCOVERY";
8
- })(NecordParamType = exports.NecordParamType || (exports.NecordParamType = {}));
8
+ })(NecordParamType || (exports.NecordParamType = NecordParamType = {}));
@@ -14,7 +14,7 @@ const common_1 = require("@nestjs/common");
14
14
  const discord_js_1 = require("discord.js");
15
15
  const necord_constants_1 = require("../necord.constants");
16
16
  const necord_explorer_service_1 = require("../necord-explorer.service");
17
- let ListenersService = class ListenersService {
17
+ let ListenersService = exports.ListenersService = class ListenersService {
18
18
  constructor(client, explorerService) {
19
19
  this.client = client;
20
20
  this.explorerService = explorerService;
@@ -246,9 +246,8 @@ let ListenersService = class ListenersService {
246
246
  }
247
247
  }
248
248
  };
249
- ListenersService = __decorate([
249
+ exports.ListenersService = ListenersService = __decorate([
250
250
  (0, common_1.Injectable)(),
251
251
  __metadata("design:paramtypes", [discord_js_1.Client,
252
252
  necord_explorer_service_1.ExplorerService])
253
253
  ], ListenersService);
254
- exports.ListenersService = ListenersService;
@@ -15,7 +15,7 @@ const common_1 = require("@nestjs/common");
15
15
  const discord_js_1 = require("discord.js");
16
16
  const necord_explorer_service_1 = require("../necord-explorer.service");
17
17
  const necord_constants_1 = require("../necord.constants");
18
- let MessageComponentsService = MessageComponentsService_1 = class MessageComponentsService {
18
+ let MessageComponentsService = exports.MessageComponentsService = MessageComponentsService_1 = class MessageComponentsService {
19
19
  constructor(client, explorerService) {
20
20
  this.client = client;
21
21
  this.explorerService = explorerService;
@@ -53,9 +53,8 @@ let MessageComponentsService = MessageComponentsService_1 = class MessageCompone
53
53
  this.components.delete(this.componentName(type, customId));
54
54
  }
55
55
  };
56
- MessageComponentsService = MessageComponentsService_1 = __decorate([
56
+ exports.MessageComponentsService = MessageComponentsService = MessageComponentsService_1 = __decorate([
57
57
  (0, common_1.Injectable)(),
58
58
  __metadata("design:paramtypes", [discord_js_1.Client,
59
59
  necord_explorer_service_1.ExplorerService])
60
60
  ], MessageComponentsService);
61
- exports.MessageComponentsService = MessageComponentsService;
@@ -15,7 +15,7 @@ const common_1 = require("@nestjs/common");
15
15
  const discord_js_1 = require("discord.js");
16
16
  const necord_explorer_service_1 = require("../necord-explorer.service");
17
17
  const necord_constants_1 = require("../necord.constants");
18
- let ModalsService = ModalsService_1 = class ModalsService {
18
+ let ModalsService = exports.ModalsService = ModalsService_1 = class ModalsService {
19
19
  constructor(client, explorerService) {
20
20
  this.client = client;
21
21
  this.explorerService = explorerService;
@@ -48,9 +48,8 @@ let ModalsService = ModalsService_1 = class ModalsService {
48
48
  this.modals.delete(customId);
49
49
  }
50
50
  };
51
- ModalsService = ModalsService_1 = __decorate([
51
+ exports.ModalsService = ModalsService = ModalsService_1 = __decorate([
52
52
  (0, common_1.Injectable)(),
53
53
  __metadata("design:paramtypes", [discord_js_1.Client,
54
54
  necord_explorer_service_1.ExplorerService])
55
55
  ], ModalsService);
56
- exports.ModalsService = ModalsService;
@@ -16,7 +16,7 @@ const core_1 = require("@nestjs/core");
16
16
  const external_context_creator_1 = require("@nestjs/core/helpers/external-context-creator");
17
17
  const constants_1 = require("@nestjs/common/constants");
18
18
  const constants_2 = require("@nestjs/core/injector/constants");
19
- let ExplorerService = class ExplorerService extends core_1.Reflector {
19
+ let ExplorerService = exports.ExplorerService = class ExplorerService extends core_1.Reflector {
20
20
  constructor(discoveryService, externalContextCreator, metadataScanner) {
21
21
  super();
22
22
  this.discoveryService = discoveryService;
@@ -50,10 +50,9 @@ let ExplorerService = class ExplorerService extends core_1.Reflector {
50
50
  return this.externalContextCreator.create(instance, prototype[methodName], methodName, constants_1.ROUTE_ARGS_METADATA, this.necordParamsFactory, constants_2.STATIC_CONTEXT, undefined, { guards: true, filters: true, interceptors: true }, 'necord');
51
51
  }
52
52
  };
53
- ExplorerService = __decorate([
53
+ exports.ExplorerService = ExplorerService = __decorate([
54
54
  (0, common_1.Injectable)(),
55
55
  __metadata("design:paramtypes", [core_1.DiscoveryService,
56
56
  external_context_creator_1.ExternalContextCreator,
57
57
  core_1.MetadataScanner])
58
58
  ], ExplorerService);
59
- exports.ExplorerService = ExplorerService;
@@ -25,7 +25,7 @@ const necord_explorer_service_1 = require("./necord-explorer.service");
25
25
  const commands_1 = require("./commands");
26
26
  const core_1 = require("@nestjs/core");
27
27
  const necord_rest_provider_1 = require("./necord-rest.provider");
28
- let NecordModule = class NecordModule extends necord_constants_1.ConfigurableModuleClass {
28
+ let NecordModule = exports.NecordModule = class NecordModule extends necord_constants_1.ConfigurableModuleClass {
29
29
  constructor(client, options) {
30
30
  super();
31
31
  this.client = client;
@@ -38,7 +38,7 @@ let NecordModule = class NecordModule extends necord_constants_1.ConfigurableMod
38
38
  return this.client.destroy();
39
39
  }
40
40
  };
41
- NecordModule = __decorate([
41
+ exports.NecordModule = NecordModule = __decorate([
42
42
  (0, common_1.Global)(),
43
43
  (0, common_1.Module)({
44
44
  imports: [core_1.DiscoveryModule],
@@ -70,4 +70,3 @@ NecordModule = __decorate([
70
70
  __param(1, (0, common_1.Inject)(necord_constants_1.NECORD_MODULE_OPTIONS)),
71
71
  __metadata("design:paramtypes", [discord_js_1.Client, Object])
72
72
  ], NecordModule);
73
- exports.NecordModule = NecordModule;
@@ -27,7 +27,7 @@ const common_1 = require("@nestjs/common");
27
27
  const discord_js_1 = require("discord.js");
28
28
  const necord_constants_1 = require("../necord.constants");
29
29
  const necord_explorer_service_1 = require("../necord-explorer.service");
30
- let TextCommandsService = TextCommandsService_1 = class TextCommandsService {
30
+ let TextCommandsService = exports.TextCommandsService = TextCommandsService_1 = class TextCommandsService {
31
31
  constructor(options, client, explorerService) {
32
32
  this.options = options;
33
33
  this.client = client;
@@ -69,10 +69,9 @@ let TextCommandsService = TextCommandsService_1 = class TextCommandsService {
69
69
  this.textCommands.delete(name);
70
70
  }
71
71
  };
72
- TextCommandsService = TextCommandsService_1 = __decorate([
72
+ exports.TextCommandsService = TextCommandsService = TextCommandsService_1 = __decorate([
73
73
  (0, common_1.Injectable)(),
74
74
  __param(0, (0, common_1.Inject)(necord_constants_1.NECORD_MODULE_OPTIONS)),
75
75
  __metadata("design:paramtypes", [Object, discord_js_1.Client,
76
76
  necord_explorer_service_1.ExplorerService])
77
77
  ], TextCommandsService);
78
- exports.TextCommandsService = TextCommandsService;
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.4",
4
+ "version": "5.8.5-dev.1686877793.8e20f4f",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && tsc -p tsconfig.build.json",
7
7
  "prepublish:npm": "npm run build",
@@ -55,32 +55,32 @@
55
55
  "path-to-regexp": "6.2.1"
56
56
  },
57
57
  "devDependencies": {
58
- "@commitlint/cli": "17.6.3",
59
- "@commitlint/config-angular": "17.6.3",
58
+ "@commitlint/cli": "17.6.5",
59
+ "@commitlint/config-angular": "17.6.5",
60
60
  "@favware/npm-deprecate": "1.0.7",
61
- "@nestjs/common": "9.4.0",
62
- "@nestjs/core": "9.4.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",
61
+ "@nestjs/common": "9.4.3",
62
+ "@nestjs/core": "9.4.3",
63
+ "@types/node": "20.3.1",
64
+ "@typescript-eslint/eslint-plugin": "5.59.11",
65
+ "@typescript-eslint/parser": "5.59.11",
66
+ "discord-api-types": "0.37.43",
67
67
  "discord.js": "14.11.0",
68
- "eslint": "8.40.0",
68
+ "eslint": "8.42.0",
69
69
  "eslint-config-prettier": "8.8.0",
70
70
  "eslint-plugin-prettier": "4.2.1",
71
71
  "husky": "8.0.3",
72
72
  "lint-staged": "13.2.2",
73
73
  "prettier": "2.8.8",
74
74
  "reflect-metadata": "0.1.13",
75
- "release-it": "15.10.3",
76
- "rimraf": "5.0.0",
75
+ "release-it": "15.11.0",
76
+ "rimraf": "5.0.1",
77
77
  "rxjs": "7.8.1",
78
78
  "ts-node": "10.9.1",
79
- "typescript": "5.0.4"
79
+ "typescript": "5.1.3"
80
80
  },
81
81
  "peerDependencies": {
82
- "@nestjs/common": "^8.0.0 || ^9.0.0",
83
- "@nestjs/core": "^8.0.0 || ^9.0.0",
82
+ "@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0",
83
+ "@nestjs/core": "^8.0.0 || ^9.0.0 || ^10.0.0",
84
84
  "discord.js": "^14.0.1",
85
85
  "reflect-metadata": "^0.1.13",
86
86
  "rxjs": "^7.2.0"