reciple 6.0.4 → 7.0.0-dev.5

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 (109) hide show
  1. package/LICENSE +674 -674
  2. package/bin/bin.d.mts +2 -0
  3. package/bin/bin.mjs +73 -0
  4. package/bin/bin.mjs.map +1 -0
  5. package/bin/classes/Config.d.ts +32 -0
  6. package/bin/classes/Config.js +72 -0
  7. package/bin/classes/Config.js.map +1 -0
  8. package/bin/esm.d.mts +1 -0
  9. package/{dist/lib → bin}/esm.mjs +0 -0
  10. package/bin/esm.mjs.map +1 -0
  11. package/bin/index.d.ts +5 -0
  12. package/bin/index.js +22 -0
  13. package/bin/index.js.map +1 -0
  14. package/bin/utils/cli.d.ts +4 -0
  15. package/bin/utils/cli.js +20 -0
  16. package/bin/utils/cli.js.map +1 -0
  17. package/bin/utils/logger.d.ts +6 -0
  18. package/bin/utils/logger.js +61 -0
  19. package/bin/utils/logger.js.map +1 -0
  20. package/bin/utils/modules.d.ts +3 -0
  21. package/bin/utils/modules.js +35 -0
  22. package/bin/utils/modules.js.map +1 -0
  23. package/package.json +25 -67
  24. package/static/config.yml +97 -0
  25. package/README.md +0 -182
  26. package/dist/lib/bin.mjs +0 -77
  27. package/dist/lib/bin.mjs.map +0 -1
  28. package/dist/lib/esm.mjs.map +0 -1
  29. package/dist/lib/index.js +0 -34
  30. package/dist/lib/index.js.map +0 -1
  31. package/dist/lib/reciple/classes/RecipleClient.js +0 -293
  32. package/dist/lib/reciple/classes/RecipleClient.js.map +0 -1
  33. package/dist/lib/reciple/classes/RecipleConfig.js +0 -107
  34. package/dist/lib/reciple/classes/RecipleConfig.js.map +0 -1
  35. package/dist/lib/reciple/classes/RecipleModule.js +0 -137
  36. package/dist/lib/reciple/classes/RecipleModule.js.map +0 -1
  37. package/dist/lib/reciple/classes/builders/MessageCommandBuilder.js +0 -316
  38. package/dist/lib/reciple/classes/builders/MessageCommandBuilder.js.map +0 -1
  39. package/dist/lib/reciple/classes/builders/MessageCommandOptionBuilder.js +0 -127
  40. package/dist/lib/reciple/classes/builders/MessageCommandOptionBuilder.js.map +0 -1
  41. package/dist/lib/reciple/classes/builders/SlashCommandBuilder.js +0 -253
  42. package/dist/lib/reciple/classes/builders/SlashCommandBuilder.js.map +0 -1
  43. package/dist/lib/reciple/classes/managers/ApplicationCommandManager.js +0 -179
  44. package/dist/lib/reciple/classes/managers/ApplicationCommandManager.js.map +0 -1
  45. package/dist/lib/reciple/classes/managers/CommandCooldownManager.js +0 -100
  46. package/dist/lib/reciple/classes/managers/CommandCooldownManager.js.map +0 -1
  47. package/dist/lib/reciple/classes/managers/CommandManager.js +0 -65
  48. package/dist/lib/reciple/classes/managers/CommandManager.js.map +0 -1
  49. package/dist/lib/reciple/classes/managers/MessageCommandOptionManager.js +0 -26
  50. package/dist/lib/reciple/classes/managers/MessageCommandOptionManager.js.map +0 -1
  51. package/dist/lib/reciple/classes/managers/ModuleManager.js +0 -181
  52. package/dist/lib/reciple/classes/managers/ModuleManager.js.map +0 -1
  53. package/dist/lib/reciple/flags.js +0 -32
  54. package/dist/lib/reciple/flags.js.map +0 -1
  55. package/dist/lib/reciple/permissions.js +0 -31
  56. package/dist/lib/reciple/permissions.js.map +0 -1
  57. package/dist/lib/reciple/types/builders.js +0 -12
  58. package/dist/lib/reciple/types/builders.js.map +0 -1
  59. package/dist/lib/reciple/types/commands.js +0 -16
  60. package/dist/lib/reciple/types/commands.js.map +0 -1
  61. package/dist/lib/reciple/types/paramOptions.js +0 -3
  62. package/dist/lib/reciple/types/paramOptions.js.map +0 -1
  63. package/dist/lib/reciple/util.js +0 -72
  64. package/dist/lib/reciple/util.js.map +0 -1
  65. package/dist/lib/reciple/version.js +0 -48
  66. package/dist/lib/reciple/version.js.map +0 -1
  67. package/dist/types/bin.d.mts +0 -3
  68. package/dist/types/bin.d.mts.map +0 -1
  69. package/dist/types/esm.d.mts +0 -2
  70. package/dist/types/esm.d.mts.map +0 -1
  71. package/dist/types/index.d.ts +0 -18
  72. package/dist/types/index.d.ts.map +0 -1
  73. package/dist/types/reciple/classes/RecipleClient.d.ts +0 -116
  74. package/dist/types/reciple/classes/RecipleClient.d.ts.map +0 -1
  75. package/dist/types/reciple/classes/RecipleConfig.d.ts +0 -102
  76. package/dist/types/reciple/classes/RecipleConfig.d.ts.map +0 -1
  77. package/dist/types/reciple/classes/RecipleModule.d.ts +0 -88
  78. package/dist/types/reciple/classes/RecipleModule.d.ts.map +0 -1
  79. package/dist/types/reciple/classes/builders/MessageCommandBuilder.d.ts +0 -198
  80. package/dist/types/reciple/classes/builders/MessageCommandBuilder.d.ts.map +0 -1
  81. package/dist/types/reciple/classes/builders/MessageCommandOptionBuilder.d.ts +0 -54
  82. package/dist/types/reciple/classes/builders/MessageCommandOptionBuilder.d.ts.map +0 -1
  83. package/dist/types/reciple/classes/builders/SlashCommandBuilder.d.ts +0 -107
  84. package/dist/types/reciple/classes/builders/SlashCommandBuilder.d.ts.map +0 -1
  85. package/dist/types/reciple/classes/managers/ApplicationCommandManager.d.ts +0 -54
  86. package/dist/types/reciple/classes/managers/ApplicationCommandManager.d.ts.map +0 -1
  87. package/dist/types/reciple/classes/managers/CommandCooldownManager.d.ts +0 -71
  88. package/dist/types/reciple/classes/managers/CommandCooldownManager.d.ts.map +0 -1
  89. package/dist/types/reciple/classes/managers/CommandManager.d.ts +0 -35
  90. package/dist/types/reciple/classes/managers/CommandManager.d.ts.map +0 -1
  91. package/dist/types/reciple/classes/managers/MessageCommandOptionManager.d.ts +0 -23
  92. package/dist/types/reciple/classes/managers/MessageCommandOptionManager.d.ts.map +0 -1
  93. package/dist/types/reciple/classes/managers/ModuleManager.d.ts +0 -50
  94. package/dist/types/reciple/classes/managers/ModuleManager.d.ts.map +0 -1
  95. package/dist/types/reciple/flags.d.ts +0 -18
  96. package/dist/types/reciple/flags.d.ts.map +0 -1
  97. package/dist/types/reciple/permissions.d.ts +0 -16
  98. package/dist/types/reciple/permissions.d.ts.map +0 -1
  99. package/dist/types/reciple/types/builders.d.ts +0 -206
  100. package/dist/types/reciple/types/builders.d.ts.map +0 -1
  101. package/dist/types/reciple/types/commands.d.ts +0 -86
  102. package/dist/types/reciple/types/commands.d.ts.map +0 -1
  103. package/dist/types/reciple/types/paramOptions.d.ts +0 -102
  104. package/dist/types/reciple/types/paramOptions.d.ts.map +0 -1
  105. package/dist/types/reciple/util.d.ts +0 -27
  106. package/dist/types/reciple/util.d.ts.map +0 -1
  107. package/dist/types/reciple/version.d.ts +0 -26
  108. package/dist/types/reciple/version.d.ts.map +0 -1
  109. package/resource/reciple.yml +0 -122
@@ -1,54 +0,0 @@
1
- import { MessageCommandOptionData, MessageCommandOptionResolvable } from '../../types/builders';
2
- import { MessageCommandValidatedOption } from './MessageCommandBuilder';
3
- import { Awaitable } from 'discord.js';
4
- /**
5
- * Option builder for MessageCommandBuilder
6
- */
7
- export declare class MessageCommandOptionBuilder {
8
- protected _name: string;
9
- protected _description: string;
10
- protected _required: boolean;
11
- protected _validator?: (value: string) => Awaitable<boolean>;
12
- get name(): typeof this._name;
13
- get description(): typeof this._description;
14
- get required(): typeof this._required;
15
- get validator(): typeof this._validator;
16
- set name(name: typeof this._name);
17
- set description(description: typeof this._description);
18
- set required(required: typeof this._required);
19
- set validator(validator: typeof this._validator);
20
- constructor(data?: Partial<MessageCommandOptionData>);
21
- /**
22
- * Set command option name
23
- * @param name Option name
24
- */
25
- setName(name: string): this;
26
- /**
27
- * Set command option description
28
- * @param description Option description
29
- */
30
- setDescription(description: string): this;
31
- /**
32
- * Set if this option is required
33
- * @param required `true` if this option is required
34
- */
35
- setRequired(required: boolean): this;
36
- /**
37
- * Set your custom function to validate given value for this option
38
- * @param validator Custom function to validate value given for this option
39
- */
40
- setValidator(validator?: (value: string) => Awaitable<boolean>): this;
41
- toJSON(): MessageCommandOptionData;
42
- /**
43
- * Resolves message command option data/builder
44
- * @param option Option data to resolve
45
- */
46
- static resolveMessageCommandOption(option: MessageCommandOptionResolvable): MessageCommandOptionBuilder;
47
- /**
48
- * Is a Message command option builder
49
- * @param builder data to check
50
- */
51
- static isMessageCommandOption(builder: unknown): builder is MessageCommandOptionBuilder;
52
- static validateOption(option: MessageCommandOptionResolvable, value?: string): Promise<MessageCommandValidatedOption>;
53
- }
54
- //# sourceMappingURL=MessageCommandOptionBuilder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageCommandOptionBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/reciple/classes/builders/MessageCommandOptionBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,SAAS,EAAuB,MAAM,YAAY,CAAC;AAE5D;;GAEG;AACH,qBAAa,2BAA2B;IACpC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAM;IAC7B,SAAS,CAAC,YAAY,EAAE,MAAM,CAAM;IACpC,SAAS,CAAC,SAAS,EAAE,OAAO,CAAS;IACrC,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC,OAAO,CAAC,CAAC;IAE7D,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,KAAK,CAE5B;IACD,IAAI,WAAW,IAAI,OAAO,IAAI,CAAC,YAAY,CAE1C;IACD,IAAI,QAAQ,IAAI,OAAO,IAAI,CAAC,SAAS,CAEpC;IACD,IAAI,SAAS,IAAI,OAAO,IAAI,CAAC,UAAU,CAEtC;IAED,IAAI,IAAI,CAAC,IAAI,EAAE,OAAO,IAAI,CAAC,KAAK,EAE/B;IACD,IAAI,WAAW,CAAC,WAAW,EAAE,OAAO,IAAI,CAAC,YAAY,EAEpD;IACD,IAAI,QAAQ,CAAC,QAAQ,EAAE,OAAO,IAAI,CAAC,SAAS,EAE3C;IACD,IAAI,SAAS,CAAC,SAAS,EAAE,OAAO,IAAI,CAAC,UAAU,EAE9C;gBAEW,IAAI,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC;IAOpD;;;OAGG;IACI,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAMlC;;;OAGG;IACI,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAMhD;;;OAGG;IACI,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAK3C;;;OAGG;IACI,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI;IAMrE,MAAM,IAAI,wBAAwB;IASzC;;;OAGG;WACW,2BAA2B,CAAC,MAAM,EAAE,8BAA8B,GAAG,2BAA2B;IAI9G;;;OAGG;WACW,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,2BAA2B;WAI1E,cAAc,CAAC,MAAM,EAAE,8BAA8B,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,CAAC;CAqBrI"}
@@ -1,107 +0,0 @@
1
- import { CommandType, CommandHaltFunction, CommandExecuteFunction, SharedCommandBuilderProperties, AnySlashCommandBuilder, SlashCommandData, AnySlashCommandOptionData, AnySlashCommandOptionBuilder } from '../../types/builders';
2
- import { BaseCommandExecuteData, CommandHaltData } from '../../types/commands';
3
- import { ChatInputCommandInteraction, PermissionResolvable, RestOrArray, SlashCommandBuilder as DiscordJsSlashCommandBuilder, SlashCommandSubcommandBuilder, SlashCommandSubcommandGroupBuilder, SlashCommandBooleanOption, SlashCommandUserOption, SlashCommandChannelOption, SlashCommandRoleOption, SlashCommandAttachmentOption, SlashCommandMentionableOption, SlashCommandStringOption, SlashCommandIntegerOption, SlashCommandNumberOption, SharedSlashCommandOptions } from 'discord.js';
4
- /**
5
- * Execute data for slash command
6
- */
7
- export interface SlashCommandExecuteData<T = unknown> extends BaseCommandExecuteData {
8
- /**
9
- * Command type
10
- */
11
- type: CommandType.SlashCommand;
12
- /**
13
- * Command interaction
14
- */
15
- interaction: ChatInputCommandInteraction;
16
- /**
17
- * Command Builder
18
- */
19
- builder: AnySlashCommandBuilder<T>;
20
- }
21
- /**
22
- * Slash command halt data
23
- */
24
- export type SlashCommandHaltData<T = unknown> = CommandHaltData<CommandType.SlashCommand, T>;
25
- /**
26
- * Slash command halt function
27
- */
28
- export type SlashCommandHaltFunction<T = unknown> = CommandHaltFunction<CommandType.SlashCommand, T>;
29
- /**
30
- * Slash command execute function
31
- */
32
- export type SlashCommandExecuteFunction<T = unknown> = CommandExecuteFunction<CommandType.SlashCommand, T>;
33
- export type SlashCommandSubcommandsOnlyBuilder<T = unknown> = Omit<SlashCommandBuilder<T>, 'addBooleanOption' | 'addUserOption' | 'addChannelOption' | 'addRoleOption' | 'addAttachmentOption' | 'addMentionableOption' | 'addStringOption' | 'addIntegerOption' | 'addNumberOption'>;
34
- export type SlashCommandOptionsOnlyBuilder<T = unknown> = Omit<SlashCommandBuilder<T>, 'addSubcommand' | 'addSubcommandGroup'>;
35
- export interface SlashCommandBuilder<T = unknown> extends DiscordJsSlashCommandBuilder {
36
- addSubcommandGroup(input: SlashCommandSubcommandGroupBuilder | ((subcommandGroup: SlashCommandSubcommandGroupBuilder) => SlashCommandSubcommandGroupBuilder)): SlashCommandSubcommandsOnlyBuilder;
37
- addSubcommand(input: SlashCommandSubcommandBuilder | ((subcommandGroup: SlashCommandSubcommandBuilder) => SlashCommandSubcommandBuilder)): SlashCommandSubcommandsOnlyBuilder;
38
- addBooleanOption(input: SlashCommandBooleanOption | ((builder: SlashCommandBooleanOption) => SlashCommandBooleanOption)): Omit<this, 'addSubcommand' | 'addSubcommandGroup'>;
39
- addUserOption(input: SlashCommandUserOption | ((builder: SlashCommandUserOption) => SlashCommandUserOption)): Omit<this, 'addSubcommand' | 'addSubcommandGroup'>;
40
- addChannelOption(input: SlashCommandChannelOption | ((builder: SlashCommandChannelOption) => SlashCommandChannelOption)): Omit<this, 'addSubcommand' | 'addSubcommandGroup'>;
41
- addRoleOption(input: SlashCommandRoleOption | ((builder: SlashCommandRoleOption) => SlashCommandRoleOption)): Omit<this, 'addSubcommand' | 'addSubcommandGroup'>;
42
- addAttachmentOption(input: SlashCommandAttachmentOption | ((builder: SlashCommandAttachmentOption) => SlashCommandAttachmentOption)): Omit<this, 'addSubcommand' | 'addSubcommandGroup'>;
43
- addMentionableOption(input: SlashCommandMentionableOption | ((builder: SlashCommandMentionableOption) => SlashCommandMentionableOption)): Omit<this, 'addSubcommand' | 'addSubcommandGroup'>;
44
- addStringOption(input: SlashCommandStringOption | Omit<SlashCommandStringOption, 'setAutocomplete'> | Omit<SlashCommandStringOption, 'addChoices'> | ((builder: SlashCommandStringOption) => SlashCommandStringOption | Omit<SlashCommandStringOption, 'setAutocomplete'> | Omit<SlashCommandStringOption, 'addChoices'>)): Omit<this, 'addSubcommand' | 'addSubcommandGroup'>;
45
- addIntegerOption(input: SlashCommandIntegerOption | Omit<SlashCommandIntegerOption, 'setAutocomplete'> | Omit<SlashCommandIntegerOption, 'addChoices'> | ((builder: SlashCommandIntegerOption) => SlashCommandIntegerOption | Omit<SlashCommandIntegerOption, 'setAutocomplete'> | Omit<SlashCommandIntegerOption, 'addChoices'>)): Omit<this, 'addSubcommand' | 'addSubcommandGroup'>;
46
- addNumberOption(input: SlashCommandNumberOption | Omit<SlashCommandNumberOption, 'setAutocomplete'> | Omit<SlashCommandNumberOption, 'addChoices'> | ((builder: SlashCommandNumberOption) => SlashCommandNumberOption | Omit<SlashCommandNumberOption, 'setAutocomplete'> | Omit<SlashCommandNumberOption, 'addChoices'>)): Omit<this, 'addSubcommand' | 'addSubcommandGroup'>;
47
- }
48
- /**
49
- * Reciple builder for slash command
50
- */
51
- export declare class SlashCommandBuilder<T = unknown> extends DiscordJsSlashCommandBuilder implements SharedCommandBuilderProperties<T> {
52
- readonly type = CommandType.SlashCommand;
53
- protected _cooldown: number;
54
- protected _requiredBotPermissions: PermissionResolvable[];
55
- protected _requiredMemberPermissions: PermissionResolvable[];
56
- protected _halt?: SlashCommandHaltFunction<T>;
57
- protected _execute: SlashCommandExecuteFunction<T>;
58
- metadata?: T;
59
- get cooldown(): typeof this._cooldown;
60
- get requiredBotPermissions(): typeof this._requiredBotPermissions;
61
- get requiredMemberPermissions(): typeof this._requiredMemberPermissions;
62
- get halt(): typeof this._halt;
63
- get execute(): typeof this._execute;
64
- set cooldown(cooldown: typeof this._cooldown);
65
- set requiredBotPermissions(permissions: typeof this._requiredBotPermissions);
66
- set requiredMemberPermissions(permissions: typeof this._requiredMemberPermissions);
67
- set halt(halt: typeof this._halt);
68
- set execute(execute: typeof this._execute);
69
- constructor(data?: Partial<Omit<SlashCommandData<T>, 'type'>>);
70
- setCooldown(cooldown: number): this;
71
- setRequiredBotPermissions(...permissions: RestOrArray<PermissionResolvable>): this;
72
- setRequiredMemberPermissions(...permissions: RestOrArray<PermissionResolvable>): this;
73
- setHalt(halt?: SlashCommandHaltFunction<T> | null): this;
74
- setExecute(execute: SlashCommandExecuteFunction<T>): this;
75
- setMetadata(metadata?: T): this;
76
- /**
77
- * Add option builder to command builder
78
- * @param builder Command/Subcommand builder
79
- * @param option Option builder
80
- */
81
- static addOption(builder: SharedSlashCommandOptions | SlashCommandBuilder, option: AnySlashCommandOptionBuilder): SharedSlashCommandOptions;
82
- /**
83
- * Resolve option data
84
- * @param option Option dara to resolve
85
- */
86
- static resolveOption<T extends AnySlashCommandOptionBuilder>(option: AnySlashCommandOptionData): T;
87
- /**
88
- * Resolve slash command data/builder
89
- * @param commandData Command data to resolve
90
- */
91
- static resolveSlashCommand<T = unknown>(commandData: SlashCommandData<T> | AnySlashCommandBuilder<T>): AnySlashCommandBuilder<T>;
92
- /**
93
- * Is a slash command builder
94
- * @param builder data to check
95
- */
96
- static isSlashCommandBuilder<T = unknown>(builder: unknown): builder is AnySlashCommandBuilder<T>;
97
- /**
98
- * Is a slash command execute data
99
- * @param executeData data to check
100
- */
101
- static isSlashCommandExecuteData(executeData: unknown): executeData is SlashCommandExecuteData;
102
- /**
103
- * Is a message command halt data
104
- */
105
- static isSlashCommandHaltData(haltData: unknown): haltData is SlashCommandHaltData;
106
- }
107
- //# sourceMappingURL=SlashCommandBuilder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SlashCommandBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/reciple/classes/builders/SlashCommandBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,4BAA4B,EAA2C,MAAM,sBAAsB,CAAC;AAC5Q,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAG/E,OAAO,EACH,2BAA2B,EAE3B,oBAAoB,EACpB,WAAW,EACX,mBAAmB,IAAI,4BAA4B,EACnD,6BAA6B,EAC7B,kCAAkC,EAClC,yBAAyB,EACzB,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACtB,4BAA4B,EAC5B,6BAA6B,EAC7B,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EAExB,yBAAyB,EAG5B,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,MAAM,WAAW,uBAAuB,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,sBAAsB;IAChF;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC,YAAY,CAAC;IAC/B;;OAEG;IACH,WAAW,EAAE,2BAA2B,CAAC;IACzC;;OAEG;IACH,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,OAAO,IAAI,eAAe,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;AAE7F;;GAEG;AACH,MAAM,MAAM,wBAAwB,CAAC,CAAC,GAAG,OAAO,IAAI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AAG,OAAO,IAAI,sBAAsB,CAAC,CAAC,CAAC;IAIxG;;;OAGG;WACW,yBAAyB,CAAC,WAAW,EAAE,OAAO,GAAG,WAAW,IAAI,uBAAuB;IAIrG;;OAEG;WACW,sBAAsB,CAAC,QAAQ,EAAE,OAAO,GAAG,QAAQ,IAAI,oBAAoB;CAG5F"}
@@ -1,54 +0,0 @@
1
- import { ApplicationCommand, ApplicationCommandData, ApplicationCommandDataResolvable, ContextMenuCommandBuilder, GuildResolvable, RestOrArray, RESTPostAPIApplicationCommandsJSONBody, SlashCommandBuilder as DiscordJsSlashCommandBuilder } from 'discord.js';
2
- import { AnySlashCommandBuilder } from '../../types/builders';
3
- import { RecipleClient } from '../RecipleClient';
4
- export type ApplicationCommandBuilder = AnySlashCommandBuilder | ContextMenuCommandBuilder | DiscordJsSlashCommandBuilder;
5
- export declare class ApplicationCommandManager {
6
- readonly client: RecipleClient;
7
- get commands(): (import("discord.js").UserApplicationCommandData | import("discord.js").MessageApplicationCommandData | import("discord.js").ChatInputApplicationCommandData | import("discord.js").RESTPostAPIChatInputApplicationCommandsJSONBody | import("discord.js").RESTPostAPIContextMenuApplicationCommandsJSONBody | import("@discordjs/util").JSONEncodable<RESTPostAPIApplicationCommandsJSONBody>)[];
8
- get size(): number;
9
- constructor(client: RecipleClient);
10
- /**
11
- * Sets application commands globally or in guilds
12
- * @param commands Application commands
13
- * @param guilds set only to guilds
14
- */
15
- set(commands: (ApplicationCommandBuilder | ApplicationCommandDataResolvable)[], ...guilds: RestOrArray<GuildResolvable>): Promise<void>;
16
- /**
17
- * Add command globally or in guilds
18
- * @param command Application command
19
- * @param guilds add only in guilds
20
- */
21
- add(command: ApplicationCommandBuilder | ApplicationCommandDataResolvable, ...guilds: RestOrArray<GuildResolvable>): Promise<void>;
22
- /**
23
- * Remove application command globally or in guilds
24
- * @param command id of application commmand or ApplicationCommand class
25
- * @param guilds Remove from guilds
26
- */
27
- remove(command: string | ApplicationCommand, ...guilds: RestOrArray<GuildResolvable>): Promise<void>;
28
- /**
29
- * Edit application command globally or in guilds
30
- * @param command id of application command or ApplicationCommand class
31
- * @param newCommand new application command data
32
- * @param guilds Edit only from guilds
33
- */
34
- edit(command: string | ApplicationCommand, newCommand: ApplicationCommandBuilder | ApplicationCommandDataResolvable, ...guilds: RestOrArray<GuildResolvable>): Promise<void>;
35
- /**
36
- * Get application command from cache by application command data, builder, id, or name globally or from guid
37
- * @param command application command data, builder, id, or name
38
- * @param guild get command from guild
39
- */
40
- get(command: ApplicationCommandData | ApplicationCommandBuilder | string, guild?: GuildResolvable): ApplicationCommand | undefined;
41
- /**
42
- * Fetch application command by id globally or from guild
43
- * @param commandId command id
44
- * @param guild fetch from guild
45
- */
46
- fetch(commandId: string, guild?: GuildResolvable): Promise<ApplicationCommand>;
47
- /**
48
- * Parse application command builders to command data
49
- * @param commands Application command builders
50
- * @param setPermissions set slash commands permissions
51
- */
52
- protected parseCommands(commands: (ApplicationCommandDataResolvable | ApplicationCommandBuilder | RESTPostAPIApplicationCommandsJSONBody)[], setPermissions?: boolean): (ApplicationCommandDataResolvable | RESTPostAPIApplicationCommandsJSONBody)[];
53
- }
54
- //# sourceMappingURL=ApplicationCommandManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApplicationCommandManager.d.ts","sourceRoot":"","sources":["../../../../../src/reciple/classes/managers/ApplicationCommandManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,gCAAgC,EAAE,yBAAyB,EAAE,eAAe,EAAkB,WAAW,EAAE,sCAAsC,EAAE,mBAAmB,IAAI,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAEhR,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,MAAM,yBAAyB,GAAG,sBAAsB,GAAG,yBAAyB,GAAG,4BAA4B,CAAC;AAE1H,qBAAa,yBA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0,0 @@
1
- import { Guild, RestOrArray, TextBasedChannel, User } from 'discord.js';
2
- import { CommandType } from '../../types/builders';
3
- /**
4
- * cooled-down user object interface
5
- */
6
- export interface CooledDownUser {
7
- /**
8
- * Cooled-down user
9
- */
10
- user: User;
11
- /**
12
- * Cooled-down command name
13
- */
14
- command: string;
15
- /**
16
- * Command type
17
- */
18
- type: CommandType;
19
- /**
20
- * In guild
21
- */
22
- guild?: Guild | null;
23
- /**
24
- * Cooled-down channel
25
- */
26
- channel?: TextBasedChannel;
27
- /**
28
- * Cooldown expiration
29
- */
30
- expireTime: number;
31
- }
32
- /**
33
- * cooled-down users manager
34
- */
35
- export declare class CommandCooldownManager extends Array<CooledDownUser> {
36
- constructor(...data: RestOrArray<CooledDownUser>);
37
- /**
38
- * Alias for `CommandCooldownManager#push()`
39
- * @param options Cooled-down user data
40
- */
41
- add(...options: CooledDownUser[]): number;
42
- /**
43
- * Remove cooldown from specific user, channel or guild
44
- * @param options Remove cooldown data options
45
- * @param limit Remove cooldown data limit
46
- * @returns Returns the removed values
47
- */
48
- remove(options: Partial<CooledDownUser>, limit?: number): CooledDownUser[];
49
- /**
50
- * Check if the given user is cooled-down
51
- * @param options Options to identify if user is on cooldown
52
- */
53
- isCooledDown(options: Partial<Omit<CooledDownUser, 'expireTime'>>): boolean;
54
- /**
55
- * Purge non cooled-down users from this array
56
- * @param options Clean cooldown options
57
- */
58
- clean(options?: Partial<Omit<CooledDownUser, 'expireTime'>>): void;
59
- /**
60
- * Get someone's cooldown data
61
- * @param options Get cooldown data options
62
- */
63
- get(options: Partial<Omit<CooledDownUser, 'expireTime'>>): CooledDownUser | undefined;
64
- /**
65
- * Check if the options are valid
66
- * @param options Options to validated
67
- * @param data Cooled-down user data
68
- */
69
- static checkOptions(options: Partial<Omit<CooledDownUser, 'expireTime'>>, data: CooledDownUser): boolean;
70
- }
71
- //# sourceMappingURL=CommandCooldownManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommandCooldownMan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,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO;CASlH"}
@@ -1,35 +0,0 @@
1
- import { AnyCommandBuilder, AnyCommandData, AnySlashCommandBuilder, CommandType, MessageCommandResolvable, SlashCommandResolvable } from '../../types/builders';
2
- import { ApplicationCommandDataResolvable, Collection, GuildResolvable, RestOrArray } from 'discord.js';
3
- import { MessageCommandBuilder } from '../builders/MessageCommandBuilder';
4
- import { RecipleClient } from '../RecipleClient';
5
- export interface CommandManagerOptions {
6
- client: RecipleClient;
7
- messageCommands?: MessageCommandResolvable[];
8
- slashCommands?: SlashCommandResolvable[];
9
- }
10
- export declare class CommandManager {
11
- readonly client: RecipleClient;
12
- readonly slashCommands: Collection<string, AnySlashCommandBuilder>;
13
- readonly messageCommands: Collection<string, MessageCommandBuilder>;
14
- readonly additionalApplicationCommands: ApplicationCommandDataResolvable[];
15
- constructor(options: CommandManagerOptions);
16
- /**
17
- * Add command to command manager
18
- * @param commands Any command data or builder
19
- */
20
- add(...commands: RestOrArray<AnyCommandBuilder | AnyCommandData>): this;
21
- addAddtionalApplicationCommand(...commands: RestOrArray<ApplicationCommandDataResolvable>): this;
22
- /**
23
- * Get command builder by name or alias if it's a message command
24
- * @param command Command name
25
- * @param type Command type
26
- */
27
- get<T = unknown>(command: string, type: CommandType.SlashCommand): AnySlashCommandBuilder<T> | undefined;
28
- get<T = unknown>(command: string, type: CommandType.MessageCommand): MessageCommandBuilder<T> | undefined;
29
- /**
30
- * Register application commands
31
- * @param guilds Register application commands to guilds
32
- */
33
- registerApplicationCommands(...guilds: RestOrArray<GuildResolvable>): Promise<this>;
34
- }
35
- //# sourceMappingURL=CommandManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommandManager.d.ts","sourceRoot":"","sources":["../../../../../src/reciple/classes/managers/CommandManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,sBAAsB,E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G,MAAM,EAAE,WAAW,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAWnG"}
@@ -1,23 +0,0 @@
1
- import { MessageCommandValidatedOption } from '../builders/MessageCommandBuilder';
2
- import { RestOrArray } from 'discord.js';
3
- /**
4
- * Validated message options manager
5
- */
6
- export declare class MessageCommandOptionManager extends Array<MessageCommandValidatedOption> {
7
- constructor(...data: RestOrArray<MessageCommandValidatedOption>);
8
- /**
9
- * Get the option info
10
- * @param name Option name
11
- * @param requied Is the option required
12
- */
13
- get(name: string, requied?: boolean): MessageCommandValidatedOption | null;
14
- get(name: string, requied: true): MessageCommandValidatedOption;
15
- /**
16
- * Get the option value
17
- * @param name Option name
18
- * @param requied Is the option required
19
- */
20
- getValue(name: string, requied: true): string;
21
- getValue(name: string, requied?: boolean): string | null;
22
- }
23
- //# sourceMappingURL=MessageCommandOptionManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageCommandOptionManager.d.ts","sourceRoot":"","sources":["../../../../../src/reciple/classes/managers/MessageCommandOptionManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,EAAkB,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzD;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,KAAK,CAAC,6BAA6B,CAAC;gBACrE,GAAG,IAAI,EAAE,WAAW,CAAC,6BAA6B,CAAC;IAI/D;;;;OAIG;IACI,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,6BAA6B,GAAG,IAAI;IAC1E,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,GAAG,6BAA6B;IAQtE;;;;OAIG;IACI,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,GAAG,MAAM;IAC7C,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI;CAOlE"}
@@ -1,50 +0,0 @@
1
- import { ModuleManagerGetModulePathsOptions, ModuleManagerLoadModulesOptions, ModuleManagerResolveModuleFilesOptions, ModuleManagerStartModulesOptions, ModuleManagerUnloadModulesOptions } from '../../types/paramOptions';
2
- import { Collection } from 'discord.js';
3
- import { RecipleModule, RecipleScript } from '../RecipleModule';
4
- import { RecipleClient } from '../RecipleClient';
5
- export interface ModuleManagerOptions {
6
- client: RecipleClient;
7
- modules?: (RecipleModule | RecipleScript)[];
8
- }
9
- export declare class ModuleManager {
10
- readonly client: RecipleClient;
11
- readonly modules: Collection<string, RecipleModule>;
12
- constructor(options: ModuleManagerOptions);
13
- /**
14
- * Start modules
15
- * @param options start modules options
16
- * @returns started modules
17
- */
18
- startModules(options: ModuleManagerStartModulesOptions): Promise<RecipleModule[]>;
19
- /**
20
- * Load modules
21
- * @param options load modules options
22
- * @returns failed load modules
23
- */
24
- loadModules(options?: ModuleManagerLoadModulesOptions): Promise<RecipleModule[]>;
25
- /**
26
- * Unload modules
27
- * @param options unload modules options
28
- * @returns unloaded modules
29
- */
30
- unloadModules(options?: ModuleManagerUnloadModulesOptions): Promise<RecipleModule[]>;
31
- /**
32
- * Resolve modules from file paths
33
- * @param options resolve module files options
34
- * @returns resolved modules
35
- */
36
- resolveModuleFiles(options: ModuleManagerResolveModuleFilesOptions): Promise<RecipleModule[]>;
37
- /**
38
- * Validate module script
39
- * @param script module script
40
- * @returns `true` if script is valid
41
- */
42
- static validateScript(script: unknown): script is RecipleScript;
43
- /**
44
- * Get module file paths from folders
45
- * @param options get module paths options
46
- * @returns module paths
47
- */
48
- getModulePaths(options?: ModuleManagerGetModulePathsOptions): Promise<string[]>;
49
- }
50
- //# sourceMappingURL=ModuleManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ModuleManager.d.ts","sourceRoot":"","sources":["../../../../../src/reciple/classes/managers/ModuleManager.ts"],"names":[],"mappings":"A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8
- */
9
- export declare const flags: import("commander").OptionValues;
10
- /**
11
- * Token flag
12
- */
13
- export declare const token: string | undefined;
14
- /**
15
- * Current working directory
16
- */
17
- export declare const cwd: string;
18
- //# sourceMappingURL=flags.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../../../src/reciple/flags.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,SAAS,SAUV,CAAC;AAEb;;GAEG;AACH,eAAO,MAAM,KAAK,kCAAmB,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,MAAM,GAAG,SAAuB,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,GAAG,QAAqC,CAAC"}
@@ -1,16 +0,0 @@
1
- import { Guild, GuildTextBasedChannel, PermissionResolvable } from 'discord.js';
2
- import { UserHasCommandPermissionsOptions } from './types/paramOptions';
3
- /**
4
- * Check if the user has permissions to execute the given command name
5
- * @param options options
6
- */
7
- export declare function userHasCommandPermissions(options: UserHasCommandPermissionsOptions): boolean;
8
- /**
9
- * Check if the bot has the required permissions in a guild
10
- * @param guildOrChannel Check if the bot has the required permissions in this guild or channel
11
- * @param requiredPermissions Required guild bot permissions
12
- */
13
- export declare function botHasExecutePermissions(guildOrChannel?: Guild | GuildTextBasedChannel, requiredPermissions?: PermissionResolvable[]): boolean;
14
- export declare function botHasExecutePermissions(guild?: Guild, requiredPermissions?: PermissionResolvable[]): boolean;
15
- export declare function botHasExecutePermissions(channel?: GuildTextBasedChannel, requiredPermissions?: PermissionResolvable[]): boolean;
16
- //# sourceMappingURL=permissions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../src/reciple/permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,qBAAqB,EAAE,oBAAoB,EAAuB,MAAM,YAAY,CAAC;AACrG,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAExE;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,gCAAgC,GAAG,OAAO,CAO5F;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,cAAc,CAAC,EAAE,KAAK,GAAG,qBAAqB,EAAE,mBAAmB,CAAC,EAAE,oBAAoB,EAAE,GAAG,OAAO,CAAC;AAChJ,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,mBAAmB,CAAC,EAAE,oBAAoB,EAAE,GAAG,OAAO,CAAC;AAC/G,wBAAgB,wBAAwB,CAAC,OAAO,CAAC,EAAE,qBAAqB,EAAE,mBAAmB,CAAC,EAAE,oBAAoB,EAAE,GAAG,OAAO,CAAC"}