@globalart/nestcord 1.7.4 → 1.7.6

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.
@@ -1,4 +1,4 @@
1
- import { ApplicationCommand, BaseApplicationCommandData, Snowflake } from 'discord.js';
1
+ import { ApplicationCommand, BaseApplicationCommandData, Collection, Snowflake } from 'discord.js';
2
2
  import { NestCordBaseDiscovery } from '../context';
3
3
  export interface BaseCommandMeta extends BaseApplicationCommandData {
4
4
  guilds?: Snowflake[];
@@ -43,6 +43,6 @@ export declare abstract class CommandDiscovery<T extends BaseCommandMeta = BaseC
43
43
  /**
44
44
  * Get sub commands
45
45
  */
46
- getSubCommands(): any;
46
+ getSubCommands(): Collection<string, CommandDiscovery>;
47
47
  hasSubCommands(): boolean;
48
48
  }
@@ -66,6 +66,9 @@ class ButtonsPaginationBuilder extends base_pagination_builder_1.BasePaginationB
66
66
  if (button.emoji) {
67
67
  builder.setEmoji(button.emoji);
68
68
  }
69
+ if (button.disabled) {
70
+ builder.setDisabled(true);
71
+ }
69
72
  if (button.style === discord_js_1.ButtonStyle.Link) {
70
73
  builder.setURL(button.link);
71
74
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@globalart/nestcord",
3
3
  "description": "A module for creating Discord bots using NestJS, based on Discord.js",
4
- "version": "1.7.4",
4
+ "version": "1.7.6",
5
5
  "private": false,
6
6
  "scripts": {
7
7
  "build": "rimraf dist && tsc -p tsconfig.build.json",