necord 6.8.3 → 6.8.4

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.
Files changed (24) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +7 -5
  3. package/dist/commands/context-menus/decorators/message-command.decorator.d.ts +1 -1
  4. package/dist/commands/context-menus/decorators/user-command.decorator.d.ts +1 -1
  5. package/dist/commands/slash-commands/decorators/subcommand-group.decorator.d.ts +1 -1
  6. package/dist/commands/slash-commands/options/attachment-option.decorator.d.ts +2 -2
  7. package/dist/commands/slash-commands/options/boolean-option.decorator.d.ts +2 -2
  8. package/dist/commands/slash-commands/options/channel-option.decorator.d.ts +3 -3
  9. package/dist/commands/slash-commands/options/integer-option.decorator.d.ts +8 -8
  10. package/dist/commands/slash-commands/options/member-option.decorator.d.ts +2 -2
  11. package/dist/commands/slash-commands/options/mentionable-option.decorator.d.ts +2 -2
  12. package/dist/commands/slash-commands/options/number-option.decorator.d.ts +8 -8
  13. package/dist/commands/slash-commands/options/option.util.d.ts +1 -1
  14. package/dist/commands/slash-commands/options/option.util.js +2 -2
  15. package/dist/commands/slash-commands/options/role-option.decorator.d.ts +2 -2
  16. package/dist/commands/slash-commands/options/string-option.decorator.d.ts +4 -4
  17. package/dist/commands/slash-commands/options/user-option.decorator.d.ts +2 -2
  18. package/dist/commands/slash-commands/slash-command.discovery.js +1 -1
  19. package/dist/context/decorators/context.decorator.d.ts +2 -2
  20. package/dist/context/decorators/discovery.decorator.d.ts +1 -1
  21. package/dist/context/decorators/params.util.js +1 -2
  22. package/dist/message-components/message-component.discovery.d.ts +1 -1
  23. package/dist/modals/modal.discovery.d.ts +1 -1
  24. package/package.json +17 -16
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
+ # [6.8.3](https://github.com/necordjs/necord/compare/v6.8.1...v6.8.3) - (2024-04-09)
5
+
6
+ ## Bug Fixes
7
+
8
+ - Add undefined value for discovery meta ([78f558d](https://github.com/necordjs/necord/commit/78f558d99cc2b0e6769836944b381336944cd10b))
9
+
4
10
  # [6.8.0](https://github.com/necordjs/necord/compare/v6.7.0...v6.8.0) - (2024-03-14)
5
11
 
6
12
  ## Features
package/README.md CHANGED
@@ -20,9 +20,10 @@
20
20
 
21
21
  ## About
22
22
 
23
- This package uses the best of the NodeJS world under the hood. [Discord.js](https://github.com/discordjs/discord.js) is the most powerful
23
+ This package uses the best of the Node.js world under the hood.
24
+ [Discord.js](https://github.com/discordjs/discord.js) is the most powerful
24
25
  library for creating bots and [Nest.js](https://github.com/nestjs) is a progressive framework for creating well-architectured applications.
25
- This module provides fast and easy way for creating Discord bots and deep integration with your NestJS application.
26
+ This module provides a fast and easy way of creating Discord bots and deep integration with your NestJS application.
26
27
 
27
28
  **Features**
28
29
 
@@ -31,7 +32,7 @@ This module provides fast and easy way for creating Discord bots and deep integr
31
32
  - Interact with Discord (Slash Commands, Context Menus, Message Components, Listeners).
32
33
  - Full support of NestJS guards, interceptors, filters and pipes!
33
34
 
34
- For questions and support please use
35
+ For questions and support, please use
35
36
  the [Issues](https://github.com/necordjs/necord/issues/new?assignees=&labels=question&template=question.yml).
36
37
 
37
38
  ## Installation
@@ -51,6 +52,7 @@ Once the installation process is complete, we can import the `NecordModule` into
51
52
  ```typescript
52
53
  import { NecordModule } from 'necord';
53
54
  import { Module } from '@nestjs/common';
55
+ import { AppUpdate } from './app.update';
54
56
 
55
57
  @Module({
56
58
  imports: [
@@ -59,7 +61,7 @@ import { Module } from '@nestjs/common';
59
61
  intents: ['Guilds', 'GuildMessages', 'DirectMessages']
60
62
  })
61
63
  ],
62
- providers: []
64
+ providers: [AppUpdate]
63
65
  })
64
66
  export class AppModule {
65
67
  }
@@ -93,7 +95,7 @@ export class AppUpdate {
93
95
 
94
96
  Whenever you need to handle any event data, use the `Context` decorator.
95
97
 
96
- If you want to fully dive into Necord check out these resources:
98
+ If you want to fully dive into Necord, check out these resources:
97
99
 
98
100
  * [Necord Wiki](https://necord.org) - Official documentation of Necord.
99
101
  * [Nest JS](https://docs.nestjs.com) - A progressive framework for creating well-architectured applications.
@@ -15,4 +15,4 @@ import { ContextMenuMeta } from '../context-menu.discovery';
15
15
  * }
16
16
  * ```
17
17
  */
18
- export declare const MessageCommand: (options: Omit<ContextMenuMeta, 'type'>) => import("@nestjs/common").CustomDecorator;
18
+ export declare const MessageCommand: (options: Omit<ContextMenuMeta, "type">) => import("@nestjs/common").CustomDecorator;
@@ -16,4 +16,4 @@ import { ContextMenuMeta } from '../context-menu.discovery';
16
16
  * }
17
17
  * ```
18
18
  */
19
- export declare const UserCommand: (options: Omit<ContextMenuMeta, 'type'>) => import("@nestjs/common").CustomDecorator;
19
+ export declare const UserCommand: (options: Omit<ContextMenuMeta, "type">) => import("@nestjs/common").CustomDecorator;
@@ -15,4 +15,4 @@ export declare const SubcommandGroup: import("@nestjs/core").ReflectableDecorato
15
15
  * @see SubcommandGroup
16
16
  * @url https://necord.org/interactions/slash-commands#groups
17
17
  */
18
- export declare const createCommandGroupDecorator: (rootOptions: Omit<SlashCommandMeta, 'type'>) => (subOptions?: Omit<SlashCommandMeta, 'type'>) => ClassDecorator;
18
+ export declare const createCommandGroupDecorator: (rootOptions: Omit<SlashCommandMeta, "type">) => (subOptions?: Omit<SlashCommandMeta, "type">) => ClassDecorator;
@@ -7,7 +7,7 @@
7
7
  export declare const AttachmentOption: (data: {
8
8
  name: string;
9
9
  description: string;
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
- 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>>;
10
+ name_localizations?: import("discord.js").LocalizationMap | null;
11
+ description_localizations?: import("discord.js").LocalizationMap | null;
12
12
  required?: boolean;
13
13
  }) => PropertyDecorator;
@@ -7,7 +7,7 @@
7
7
  export declare const BooleanOption: (data: {
8
8
  name: string;
9
9
  description: string;
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
- 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>>;
10
+ name_localizations?: import("discord.js").LocalizationMap | null;
11
+ description_localizations?: import("discord.js").LocalizationMap | null;
12
12
  required?: boolean;
13
13
  }) => PropertyDecorator;
@@ -7,8 +7,8 @@
7
7
  export declare const ChannelOption: (data: {
8
8
  name: string;
9
9
  description: string;
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
- 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>>;
10
+ name_localizations?: import("discord.js").LocalizationMap | null;
11
+ description_localizations?: import("discord.js").LocalizationMap | null;
12
12
  required?: boolean;
13
- channel_types?: (import("discord.js").ChannelType.GuildText | import("discord.js").ChannelType.GuildVoice | import("discord.js").ChannelType.GuildCategory | import("discord.js").ChannelType.GuildAnnouncement | import("discord.js").ChannelType.AnnouncementThread | import("discord.js").ChannelType.PublicThread | import("discord.js").ChannelType.PrivateThread | import("discord.js").ChannelType.GuildStageVoice | import("discord.js").ChannelType.GuildDirectory | import("discord.js").ChannelType.GuildForum | import("discord.js").ChannelType.GuildMedia)[];
13
+ channel_types?: Exclude<import("discord.js").ChannelType, import("discord.js").ChannelType.DM | import("discord.js").ChannelType.GroupDM>[];
14
14
  }) => PropertyDecorator;
@@ -7,21 +7,21 @@
7
7
  export declare const IntegerOption: (data: {
8
8
  name: string;
9
9
  description: string;
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
- 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>>;
10
+ name_localizations?: import("discord.js").LocalizationMap | null;
11
+ description_localizations?: import("discord.js").LocalizationMap | null;
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
- 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
- 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>>;
20
+ name_localizations?: import("discord.js").LocalizationMap | null;
21
+ description_localizations?: import("discord.js").LocalizationMap | null;
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;
@@ -7,7 +7,7 @@
7
7
  export declare const MemberOption: (data: {
8
8
  name: string;
9
9
  description: string;
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
- 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>>;
10
+ name_localizations?: import("discord.js").LocalizationMap | null;
11
+ description_localizations?: import("discord.js").LocalizationMap | null;
12
12
  required?: boolean;
13
13
  }) => PropertyDecorator;
@@ -7,7 +7,7 @@
7
7
  export declare const MentionableOption: (data: {
8
8
  name: string;
9
9
  description: string;
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
- 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>>;
10
+ name_localizations?: import("discord.js").LocalizationMap | null;
11
+ description_localizations?: import("discord.js").LocalizationMap | null;
12
12
  required?: boolean;
13
13
  }) => PropertyDecorator;
@@ -7,21 +7,21 @@
7
7
  export declare const NumberOption: (data: {
8
8
  name: string;
9
9
  description: string;
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
- 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>>;
10
+ name_localizations?: import("discord.js").LocalizationMap | null;
11
+ description_localizations?: import("discord.js").LocalizationMap | null;
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
- 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
- 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>>;
20
+ name_localizations?: import("discord.js").LocalizationMap | null;
21
+ description_localizations?: import("discord.js").LocalizationMap | null;
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;
@@ -3,4 +3,4 @@ import { ApplicationCommandOptionType } from 'discord.js';
3
3
  import { OptionMeta } from '../slash-command.discovery';
4
4
  import { DistributiveOmit } from 'discord-api-types/utils/internals';
5
5
  export declare const OPTIONS_METADATA = "necord:options_meta";
6
- export declare function createOptionDecorator<T extends APIApplicationCommandOptionBase<any>>(type: ApplicationCommandOptionType, resolver: OptionMeta['resolver']): (data: DistributiveOmit<T, 'type'>) => PropertyDecorator;
6
+ export declare function createOptionDecorator<T extends APIApplicationCommandOptionBase<any>>(type: ApplicationCommandOptionType, resolver: OptionMeta['resolver']): (data: DistributiveOmit<T, "type">) => PropertyDecorator;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createOptionDecorator = exports.OPTIONS_METADATA = void 0;
3
+ exports.OPTIONS_METADATA = void 0;
4
+ exports.createOptionDecorator = createOptionDecorator;
4
5
  exports.OPTIONS_METADATA = 'necord:options_meta';
5
6
  function createOptionDecorator(type, resolver) {
6
7
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -17,4 +18,3 @@ function createOptionDecorator(type, resolver) {
17
18
  };
18
19
  };
19
20
  }
20
- exports.createOptionDecorator = createOptionDecorator;
@@ -7,7 +7,7 @@
7
7
  export declare const RoleOption: (data: {
8
8
  name: string;
9
9
  description: string;
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
- 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>>;
10
+ name_localizations?: import("discord.js").LocalizationMap | null;
11
+ description_localizations?: import("discord.js").LocalizationMap | null;
12
12
  required?: boolean;
13
13
  }) => PropertyDecorator;
@@ -7,8 +7,8 @@
7
7
  export declare const StringOption: (data: {
8
8
  name: string;
9
9
  description: string;
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
- 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>>;
10
+ name_localizations?: import("discord.js").LocalizationMap | null;
11
+ description_localizations?: import("discord.js").LocalizationMap | null;
12
12
  required?: boolean;
13
13
  autocomplete: true;
14
14
  choices?: [];
@@ -17,8 +17,8 @@ export declare const StringOption: (data: {
17
17
  } | {
18
18
  name: string;
19
19
  description: string;
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
- 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>>;
20
+ name_localizations?: import("discord.js").LocalizationMap | null;
21
+ description_localizations?: import("discord.js").LocalizationMap | null;
22
22
  required?: boolean;
23
23
  autocomplete?: false;
24
24
  choices?: import("discord.js").APIApplicationCommandOptionChoice<string>[];
@@ -7,7 +7,7 @@
7
7
  export declare const UserOption: (data: {
8
8
  name: string;
9
9
  description: string;
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
- 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>>;
10
+ name_localizations?: import("discord.js").LocalizationMap | null;
11
+ description_localizations?: import("discord.js").LocalizationMap | null;
12
12
  required?: boolean;
13
13
  }) => PropertyDecorator;
@@ -72,7 +72,7 @@ class SlashCommandDiscovery extends command_discovery_1.CommandDiscovery {
72
72
  if (this.subcommands.size >= 1) {
73
73
  const commandName = depth === 2
74
74
  ? interaction.options.getSubcommand(true)
75
- : (_a = interaction.options.getSubcommandGroup(false)) !== null && _a !== void 0 ? _a : interaction.options.getSubcommand(true);
75
+ : ((_a = interaction.options.getSubcommandGroup(false)) !== null && _a !== void 0 ? _a : interaction.options.getSubcommand(true));
76
76
  return (_b = this.subcommands.get(commandName)) === null || _b === void 0 ? void 0 : _b.execute(interaction, depth + 1);
77
77
  }
78
78
  return super.execute([interaction]);
@@ -4,5 +4,5 @@
4
4
  * @returns The decorated argument.
5
5
  * @url https://necord.org/start/#context
6
6
  */
7
- export declare const Context: (...pipes: (import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>>)[]) => ParameterDecorator;
8
- export declare const Ctx: (...pipes: (import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>>)[]) => ParameterDecorator;
7
+ export declare const Context: (...pipes: (import("@nestjs/common").Type<import("@nestjs/common").PipeTransform> | import("@nestjs/common").PipeTransform)[]) => ParameterDecorator;
8
+ export declare const Ctx: (...pipes: (import("@nestjs/common").Type<import("@nestjs/common").PipeTransform> | import("@nestjs/common").PipeTransform)[]) => ParameterDecorator;
@@ -3,4 +3,4 @@
3
3
  * This decorator is used to retrieve the discovery.
4
4
  * @returns The decorated argument.
5
5
  */
6
- export declare const Discovery: (...pipes: (import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>>)[]) => ParameterDecorator;
6
+ export declare const Discovery: (...pipes: (import("@nestjs/common").Type<import("@nestjs/common").PipeTransform> | import("@nestjs/common").PipeTransform)[]) => ParameterDecorator;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createNecordParamDecorator = void 0;
3
+ exports.createNecordParamDecorator = createNecordParamDecorator;
4
4
  const common_1 = require("@nestjs/common");
5
5
  const constants_1 = require("@nestjs/common/constants");
6
6
  function createNecordParamDecorator(type) {
@@ -9,4 +9,3 @@ function createNecordParamDecorator(type) {
9
9
  Reflect.defineMetadata(constants_1.ROUTE_ARGS_METADATA, (0, common_1.assignMetadata)(args, type, index, undefined, ...pipes), target.constructor, key);
10
10
  };
11
11
  }
12
- exports.createNecordParamDecorator = createNecordParamDecorator;
@@ -8,7 +8,7 @@ export interface MessageComponentMeta {
8
8
  * Represents a message component discovery.
9
9
  */
10
10
  export declare class MessageComponentDiscovery extends NecordBaseDiscovery<MessageComponentMeta> {
11
- readonly matcher: import("path-to-regexp").MatchFunction<object>;
11
+ readonly matcher: import("path-to-regexp").MatchFunction<Partial<Record<string, string | string[]>>>;
12
12
  getType(): MessageComponentType;
13
13
  getCustomId(): string;
14
14
  execute(interaction: MessageComponentInteraction): any;
@@ -7,7 +7,7 @@ export interface ModalMeta {
7
7
  * Represents a modal discovery.
8
8
  */
9
9
  export declare class ModalDiscovery extends NecordBaseDiscovery<ModalMeta> {
10
- readonly matcher: import("path-to-regexp").MatchFunction<object>;
10
+ readonly matcher: import("path-to-regexp").MatchFunction<Partial<Record<string, string | string[]>>>;
11
11
  getCustomId(): string;
12
12
  execute(interaction: ModalSubmitInteraction): any;
13
13
  isModal(): this is ModalDiscovery;
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.3",
4
+ "version": "6.8.4",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && tsc -p tsconfig.build.json",
7
7
  "prepublish:npm": "npm run build",
@@ -52,36 +52,37 @@
52
52
  "Alexey Filippov <socket.someone@gmail.com>"
53
53
  ],
54
54
  "dependencies": {
55
- "path-to-regexp": "6.2.2"
55
+ "path-to-regexp": "7.1.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@commitlint/cli": "19.2.1",
59
- "@commitlint/config-angular": "19.1.0",
58
+ "@commitlint/cli": "19.4.1",
59
+ "@commitlint/config-angular": "19.4.1",
60
60
  "@favware/npm-deprecate": "1.0.7",
61
- "@nestjs/common": "10.3.7",
62
- "@nestjs/core": "10.3.7",
63
- "@types/node": "20.12.6",
61
+ "@nestjs/common": "10.4.1",
62
+ "@nestjs/core": "10.4.1",
63
+ "@types/node": "22.5.2",
64
64
  "@typescript-eslint/eslint-plugin": "7.0.0",
65
65
  "@typescript-eslint/parser": "6.21.0",
66
- "discord-api-types": "0.37.79",
67
- "discord.js": "14.14.1",
66
+ "discord-api-types": "0.37.99",
67
+ "discord.js": "14.16.0",
68
68
  "eslint": "8.57.0",
69
69
  "eslint-config-prettier": "9.1.0",
70
- "eslint-plugin-prettier": "5.1.3",
71
- "husky": "9.0.11",
72
- "lint-staged": "15.2.2",
73
- "prettier": "3.2.5",
70
+ "eslint-plugin-prettier": "5.2.1",
71
+ "husky": "9.1.5",
72
+ "lint-staged": "15.2.10",
73
+ "prettier": "3.3.3",
74
74
  "reflect-metadata": "0.2.2",
75
- "release-it": "17.1.1",
76
- "rimraf": "5.0.5",
75
+ "release-it": "17.6.0",
76
+ "rimraf": "6.0.1",
77
77
  "rxjs": "7.8.1",
78
78
  "ts-node": "10.9.2",
79
- "typescript": "5.4.4"
79
+ "typescript": "5.5.4"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "@nestjs/common": "^10.2.0",
83
83
  "@nestjs/core": "^10.2.0",
84
84
  "discord.js": "^14.0.1",
85
+ "discord-api-types": "^0.37.99",
85
86
  "reflect-metadata": "^0.2.1",
86
87
  "rxjs": "^7.2.0"
87
88
  },