necord 6.4.2 → 6.5.0

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.
@@ -40,7 +40,12 @@ let CommandsModule = class CommandsModule {
40
40
  if (this.options.skipRegistration) {
41
41
  return;
42
42
  }
43
- return this.client.once('ready', () => __awaiter(this, void 0, void 0, function* () { return this.commandsService.register(); }));
43
+ return this.client.once('ready', () => __awaiter(this, void 0, void 0, function* () {
44
+ if (this.client.application.partial) {
45
+ yield this.client.application.fetch();
46
+ }
47
+ return this.commandsService.registerAllCommands();
48
+ }));
44
49
  }
45
50
  onApplicationBootstrap() {
46
51
  var _a;
@@ -8,8 +8,8 @@ export declare class CommandsService {
8
8
  private readonly slashCommandsService;
9
9
  private readonly logger;
10
10
  constructor(client: Client, contextMenusService: ContextMenusService, slashCommandsService: SlashCommandsService);
11
- register(): Promise<void>;
12
- registerInGuild(guildId: string): Promise<Collection<string, import("discord.js").ApplicationCommand<{}>>>;
11
+ registerAllCommands(): Promise<void>;
12
+ registerInGuild(guildId: string): Promise<void | Collection<string, import("discord.js").ApplicationCommand<{}>>>;
13
13
  getCommands(): CommandDiscovery[];
14
14
  getCommandsByGuilds(): Collection<string, CommandDiscovery[]>;
15
15
  getCommandByName(name: string): CommandDiscovery;
@@ -31,28 +31,27 @@ let CommandsService = CommandsService_1 = class CommandsService {
31
31
  this.slashCommandsService = slashCommandsService;
32
32
  this.logger = new common_1.Logger(CommandsService_1.name);
33
33
  }
34
- register() {
34
+ registerAllCommands() {
35
35
  return __awaiter(this, void 0, void 0, function* () {
36
- if (this.client.application.partial) {
37
- yield this.client.application.fetch();
38
- }
36
+ const guilds = new Set(this.getCommandsByGuilds().keys());
39
37
  this.logger.log(`Started refreshing application commands.`);
40
- for (const [guild, commands] of this.getCommandsByGuilds().entries()) {
41
- if (commands.length === 0) {
42
- this.logger.log(`Skipping ${guild ? `guild ${guild}` : 'global'} as it has no commands.`);
43
- continue;
44
- }
45
- const rawCommands = commands.flatMap(command => command.toJSON());
46
- yield this.client.application.commands.set(rawCommands, guild).catch(error => {
47
- this.logger.error(`Failed to register application commands (${guild ? `in guild ${guild}` : 'global'}): ${error}`, error.stack);
48
- });
38
+ for (const guild of guilds) {
39
+ yield this.registerInGuild(guild);
49
40
  }
50
41
  this.logger.log(`Successfully reloaded application commands.`);
51
42
  });
52
43
  }
53
44
  registerInGuild(guildId) {
54
45
  return __awaiter(this, void 0, void 0, function* () {
55
- return this.client.application.commands.set(this.getGuildCommands(guildId).flatMap(command => command.toJSON()), guildId);
46
+ const commands = this.getGuildCommands(guildId);
47
+ if (commands.length === 0) {
48
+ this.logger.log(`Skipping ${guildId ? `guild ${guildId}` : 'global'} as it has no commands.`);
49
+ return;
50
+ }
51
+ const rawCommands = commands.flatMap(command => command.toJSON());
52
+ return this.client.application.commands.set(rawCommands, guildId).catch(error => {
53
+ this.logger.error(`Failed to register application commands (${guildId ? `in guild ${guildId}` : 'global'}): ${error}`, error.stack);
54
+ });
56
55
  });
57
56
  }
58
57
  getCommands() {
@@ -1,7 +1,7 @@
1
1
  export declare const AttachmentOption: (data: {
2
2
  name: string;
3
- 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>>;
4
3
  description: string;
4
+ 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>>;
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
  }) => PropertyDecorator;
@@ -1,7 +1,7 @@
1
1
  export declare const BooleanOption: (data: {
2
2
  name: string;
3
- 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>>;
4
3
  description: string;
4
+ 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>>;
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
  }) => PropertyDecorator;
@@ -1,8 +1,8 @@
1
1
  export declare const ChannelOption: (data: {
2
2
  name: string;
3
- 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>>;
4
3
  description: string;
4
+ 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>>;
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
- 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)[];
7
+ 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)[];
8
8
  }) => PropertyDecorator;
@@ -1,7 +1,7 @@
1
1
  export declare const IntegerOption: (data: {
2
2
  name: string;
3
- 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>>;
4
3
  description: string;
4
+ 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>>;
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
  min_value?: number;
@@ -10,8 +10,8 @@ export declare const IntegerOption: (data: {
10
10
  choices?: [];
11
11
  } | {
12
12
  name: string;
13
- 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>>;
14
13
  description: string;
14
+ 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>>;
15
15
  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>>;
16
16
  required?: boolean;
17
17
  min_value?: number;
@@ -1,7 +1,7 @@
1
1
  export declare const MemberOption: (data: {
2
2
  name: string;
3
- 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>>;
4
3
  description: string;
4
+ 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>>;
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
  }) => PropertyDecorator;
@@ -1,7 +1,7 @@
1
1
  export declare const MentionableOption: (data: {
2
2
  name: string;
3
- 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>>;
4
3
  description: string;
4
+ 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>>;
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
  }) => PropertyDecorator;
@@ -1,7 +1,7 @@
1
1
  export declare const NumberOption: (data: {
2
2
  name: string;
3
- 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>>;
4
3
  description: string;
4
+ 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>>;
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
  min_value?: number;
@@ -10,8 +10,8 @@ export declare const NumberOption: (data: {
10
10
  choices?: [];
11
11
  } | {
12
12
  name: string;
13
- 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>>;
14
13
  description: string;
14
+ 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>>;
15
15
  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>>;
16
16
  required?: boolean;
17
17
  min_value?: number;
@@ -1,7 +1,7 @@
1
1
  export declare const RoleOption: (data: {
2
2
  name: string;
3
- 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>>;
4
3
  description: string;
4
+ 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>>;
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
  }) => PropertyDecorator;
@@ -1,7 +1,7 @@
1
1
  export declare const StringOption: (data: {
2
2
  name: string;
3
- 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>>;
4
3
  description: string;
4
+ 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>>;
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;
@@ -10,8 +10,8 @@ export declare const StringOption: (data: {
10
10
  max_length?: number;
11
11
  } | {
12
12
  name: string;
13
- 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>>;
14
13
  description: string;
14
+ 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>>;
15
15
  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>>;
16
16
  required?: boolean;
17
17
  autocomplete?: false;
@@ -1,7 +1,7 @@
1
1
  export declare const UserOption: (data: {
2
2
  name: string;
3
- 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>>;
4
3
  description: string;
4
+ 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>>;
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
  }) => PropertyDecorator;
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.4.2",
4
+ "version": "6.5.0",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && tsc -p tsconfig.build.json",
7
7
  "prepublish:npm": "npm run build",
@@ -55,28 +55,28 @@
55
55
  "path-to-regexp": "6.2.1"
56
56
  },
57
57
  "devDependencies": {
58
- "@commitlint/cli": "18.2.0",
59
- "@commitlint/config-angular": "18.1.0",
58
+ "@commitlint/cli": "18.4.3",
59
+ "@commitlint/config-angular": "18.4.3",
60
60
  "@favware/npm-deprecate": "1.0.7",
61
- "@nestjs/common": "10.2.8",
62
- "@nestjs/core": "10.2.8",
63
- "@types/node": "20.8.10",
64
- "@typescript-eslint/eslint-plugin": "6.9.1",
65
- "@typescript-eslint/parser": "6.9.1",
66
- "discord-api-types": "0.37.62",
67
- "discord.js": "14.13.0",
68
- "eslint": "8.52.0",
69
- "eslint-config-prettier": "9.0.0",
61
+ "@nestjs/common": "10.3.0",
62
+ "@nestjs/core": "10.3.0",
63
+ "@types/node": "20.10.5",
64
+ "@typescript-eslint/eslint-plugin": "6.15.0",
65
+ "@typescript-eslint/parser": "6.15.0",
66
+ "discord-api-types": "0.37.66",
67
+ "discord.js": "14.14.1",
68
+ "eslint": "8.56.0",
69
+ "eslint-config-prettier": "9.1.0",
70
70
  "eslint-plugin-prettier": "5.0.1",
71
71
  "husky": "8.0.3",
72
- "lint-staged": "15.0.2",
73
- "prettier": "3.0.3",
74
- "reflect-metadata": "0.1.13",
75
- "release-it": "16.2.1",
72
+ "lint-staged": "15.2.0",
73
+ "prettier": "3.1.1",
74
+ "reflect-metadata": "0.1.14",
75
+ "release-it": "17.0.1",
76
76
  "rimraf": "5.0.5",
77
77
  "rxjs": "7.8.1",
78
- "ts-node": "10.9.1",
79
- "typescript": "5.2.2"
78
+ "ts-node": "10.9.2",
79
+ "typescript": "5.3.3"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "@nestjs/common": "^10.2.0",