oopscord.js 0.0.28 → 0.0.30

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 (39) hide show
  1. package/README.md +1 -1
  2. package/bun.lock +264 -264
  3. package/dist/index.js +1 -17
  4. package/dist/structures/Constants.js +2 -5
  5. package/dist/structures/DiscordApp.d.ts.map +1 -1
  6. package/dist/structures/DiscordApp.js +94 -81
  7. package/dist/structures/Plugin.js +1 -5
  8. package/dist/structures/components/BaseButton.js +11 -15
  9. package/dist/structures/components/BaseModal.js +28 -35
  10. package/dist/structures/components/BaseSelectMenu.js +13 -17
  11. package/dist/structures/components/Listener.d.ts +18 -0
  12. package/dist/structures/components/Listener.d.ts.map +1 -0
  13. package/dist/structures/components/Listener.js +17 -0
  14. package/dist/structures/components/index.d.ts +1 -0
  15. package/dist/structures/components/index.d.ts.map +1 -1
  16. package/dist/structures/components/index.js +4 -19
  17. package/dist/structures/decorators/CommandDecorator.d.ts +1 -1
  18. package/dist/structures/decorators/CommandDecorator.d.ts.map +1 -1
  19. package/dist/structures/decorators/CommandDecorator.js +127 -158
  20. package/dist/structures/decorators/Constants.d.ts +5 -3
  21. package/dist/structures/decorators/Constants.d.ts.map +1 -1
  22. package/dist/structures/decorators/Constants.js +32 -33
  23. package/dist/structures/decorators/DiscordModuleDecorator.d.ts +4 -17
  24. package/dist/structures/decorators/DiscordModuleDecorator.d.ts.map +1 -1
  25. package/dist/structures/decorators/DiscordModuleDecorator.js +9 -34
  26. package/dist/structures/decorators/EventDecorator.d.ts +44 -0
  27. package/dist/structures/decorators/EventDecorator.d.ts.map +1 -0
  28. package/dist/structures/decorators/EventDecorator.js +44 -0
  29. package/dist/structures/decorators/InteractionHandlerDecorator.js +5 -9
  30. package/dist/structures/decorators/MessageComponentDecorator.d.ts +1 -1
  31. package/dist/structures/decorators/MessageComponentDecorator.d.ts.map +1 -1
  32. package/dist/structures/decorators/MessageComponentDecorator.js +68 -86
  33. package/dist/structures/decorators/index.d.ts +1 -0
  34. package/dist/structures/decorators/index.d.ts.map +1 -1
  35. package/dist/structures/decorators/index.js +6 -21
  36. package/dist/structures/index.js +6 -22
  37. package/dist/utils/Util.js +3 -7
  38. package/package.json +38 -38
  39. package/tsdown.config.json +3 -0
@@ -1,13 +1,7 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.BaseModal = void 0;
7
- const discord_js_1 = require("discord.js");
8
- const __1 = require("..");
9
- const node_crypto_1 = __importDefault(require("node:crypto"));
10
- const Util_1 = require("../../utils/Util");
1
+ import { CheckboxBuilder, CheckboxGroupBuilder, LabelBuilder, ModalBuilder, RadioGroupBuilder, StringSelectMenuBuilder, TextDisplayBuilder, TextInputBuilder } from "discord.js";
2
+ import { MODAL_COMPONENTS_KEY, MODAL_OPTIONS_KEY } from "..";
3
+ import crypto from "node:crypto";
4
+ import { Util } from "../../utils/Util";
11
5
  /**
12
6
  * The base class for modals created with the {@link Modal} decorator. This class is used to create a modal from the options and components defined in the class, and to override the default options and component values with new options and values when creating the modal.
13
7
  *
@@ -37,16 +31,16 @@ const Util_1 = require("../../utils/Util");
37
31
  * }
38
32
  * ```
39
33
  */
40
- class BaseModal {
34
+ export class BaseModal {
41
35
  static modal = null;
42
36
  static options;
43
37
  static components = [];
44
38
  /** Returns a new {@link ModalBuilder} that was created from the modal options and components. */
45
39
  static getModal() {
46
40
  if (this.modal)
47
- return discord_js_1.ModalBuilder.from(this.modal.toJSON());
48
- const options = Reflect.getMetadata(__1.MODAL_OPTIONS_KEY, this);
49
- const components = Reflect.getMetadata(__1.MODAL_COMPONENTS_KEY, this) ?? [];
41
+ return ModalBuilder.from(this.modal.toJSON());
42
+ const options = Reflect.getMetadata(MODAL_OPTIONS_KEY, this);
43
+ const components = Reflect.getMetadata(MODAL_COMPONENTS_KEY, this) ?? [];
50
44
  if (!options || !components)
51
45
  throw new TypeError("Failed to get the modal.");
52
46
  // Reverse the components because they are added to the modal in reverse order due to the way the decorators work.
@@ -54,7 +48,7 @@ class BaseModal {
54
48
  this.options = options;
55
49
  this.components = [...reversedComponents];
56
50
  this.modal = create(options, reversedComponents.map(c => c.component));
57
- return discord_js_1.ModalBuilder.from(this.modal.toJSON());
51
+ return ModalBuilder.from(this.modal.toJSON());
58
52
  }
59
53
  /**
60
54
  * Returns a new {@link ModalBuilder} with the specified options and component values merged with the default options and components defined in the class.
@@ -63,15 +57,15 @@ class BaseModal {
63
57
  * @param values The component values to merge with the default components. The `customId` property is used to match the values with the correct components, and the `type` property is used to determine which type of component the value is for.
64
58
  */
65
59
  static override(options = {}, ...values) {
66
- const currentOptions = this.options ?? Reflect.getMetadata(__1.MODAL_OPTIONS_KEY, this);
67
- const currentComponents = this.components.length > 0 ? this.components : Reflect.getMetadata(__1.MODAL_COMPONENTS_KEY, this)?.reverse();
60
+ const currentOptions = this.options ?? Reflect.getMetadata(MODAL_OPTIONS_KEY, this);
61
+ const currentComponents = this.components.length > 0 ? this.components : Reflect.getMetadata(MODAL_COMPONENTS_KEY, this)?.reverse();
68
62
  if (!currentOptions)
69
63
  throw new TypeError("Failed to get the modal options.");
70
- const newOptions = Util_1.Util.mergeDefault(currentOptions, options);
64
+ const newOptions = Util.mergeDefault(currentOptions, options);
71
65
  const newComponents = currentComponents.map(c => {
72
66
  const { customId, component } = c;
73
- if (component instanceof discord_js_1.LabelBuilder) {
74
- const updatedComponent = new discord_js_1.LabelBuilder(component.toJSON());
67
+ if (component instanceof LabelBuilder) {
68
+ const updatedComponent = new LabelBuilder(component.toJSON());
75
69
  const matchingLabelValue = values.find(v => v.customId === customId && v.type === 'label');
76
70
  if (matchingLabelValue) {
77
71
  if (matchingLabelValue.label)
@@ -79,38 +73,38 @@ class BaseModal {
79
73
  if (matchingLabelValue.description)
80
74
  updatedComponent.setDescription(matchingLabelValue.description);
81
75
  }
82
- if (component.data.component instanceof discord_js_1.TextInputBuilder) {
76
+ if (component.data.component instanceof TextInputBuilder) {
83
77
  const matchingTextInputValue = values.find(v => v.customId === component.data.component.data.custom_id && v.type === 'text_input');
84
78
  if (matchingTextInputValue) {
85
79
  if ("value" in component.data.component.data) {
86
- const updatedTextInput = discord_js_1.TextInputBuilder.from(component.data.component.toJSON());
80
+ const updatedTextInput = TextInputBuilder.from(component.data.component.toJSON());
87
81
  updatedTextInput.setValue(matchingTextInputValue.value);
88
82
  updatedComponent.setTextInputComponent(updatedTextInput);
89
83
  }
90
84
  }
91
85
  }
92
- else if (component.data.component instanceof discord_js_1.StringSelectMenuBuilder) {
86
+ else if (component.data.component instanceof StringSelectMenuBuilder) {
93
87
  const matchingStringSelectValue = values.find(v => v.customId === component.data.component.data.custom_id && v.type === 'string_select');
94
88
  if (matchingStringSelectValue) {
95
- const updatedComponent = discord_js_1.StringSelectMenuBuilder.from(component.data.component.toJSON());
89
+ const updatedComponent = StringSelectMenuBuilder.from(component.data.component.toJSON());
96
90
  updatedComponent.setOptions(matchingStringSelectValue.options);
97
91
  component.setStringSelectMenuComponent(updatedComponent);
98
92
  }
99
93
  }
100
- else if (component.data.component instanceof discord_js_1.RadioGroupBuilder) {
94
+ else if (component.data.component instanceof RadioGroupBuilder) {
101
95
  const matchingRadioGroupValue = values.find(v => v.customId === component.data.component.data.custom_id && v.type === 'radio_group');
102
96
  if (matchingRadioGroupValue) {
103
- const updatedComponent = new discord_js_1.RadioGroupBuilder(component.data.component.toJSON());
97
+ const updatedComponent = new RadioGroupBuilder(component.data.component.toJSON());
104
98
  if ("required" in matchingRadioGroupValue)
105
99
  updatedComponent.setRequired(matchingRadioGroupValue.required);
106
100
  updatedComponent.setOptions(matchingRadioGroupValue.options);
107
101
  component.setRadioGroupComponent(updatedComponent);
108
102
  }
109
103
  }
110
- else if (component.data.component instanceof discord_js_1.CheckboxGroupBuilder) {
104
+ else if (component.data.component instanceof CheckboxGroupBuilder) {
111
105
  const matchingCheckboxGroupValue = values.find(v => v.customId === component.data.component.data.custom_id && v.type === 'checkbox_group');
112
106
  if (matchingCheckboxGroupValue) {
113
- const updatedComponent = new discord_js_1.CheckboxGroupBuilder(component.data.component.toJSON());
107
+ const updatedComponent = new CheckboxGroupBuilder(component.data.component.toJSON());
114
108
  if (typeof matchingCheckboxGroupValue.minValues == "number")
115
109
  updatedComponent.setMinValues(matchingCheckboxGroupValue.minValues);
116
110
  if (typeof matchingCheckboxGroupValue.maxValues == "number")
@@ -121,10 +115,10 @@ class BaseModal {
121
115
  component.setCheckboxGroupComponent(updatedComponent);
122
116
  }
123
117
  }
124
- else if (component.data.component instanceof discord_js_1.CheckboxBuilder) {
118
+ else if (component.data.component instanceof CheckboxBuilder) {
125
119
  const matchingCheckboxValue = values.find(v => v.customId === component.data.component.data.custom_id && v.type === 'checkbox');
126
120
  if (matchingCheckboxValue) {
127
- const updatedComponent = new discord_js_1.CheckboxBuilder(component.data.component.toJSON());
121
+ const updatedComponent = new CheckboxBuilder(component.data.component.toJSON());
128
122
  if ("default" in matchingCheckboxValue)
129
123
  updatedComponent.setDefault(matchingCheckboxValue.default);
130
124
  component.setCheckboxComponent(updatedComponent);
@@ -132,8 +126,8 @@ class BaseModal {
132
126
  }
133
127
  return { customId, component: updatedComponent };
134
128
  }
135
- else if (component instanceof discord_js_1.TextDisplayBuilder) {
136
- const updatedComponent = new discord_js_1.TextDisplayBuilder(component.toJSON());
129
+ else if (component instanceof TextDisplayBuilder) {
130
+ const updatedComponent = new TextDisplayBuilder(component.toJSON());
137
131
  const matchingTextDisplayValue = values.find(v => v.customId === customId && v.type === 'text_display');
138
132
  if (matchingTextDisplayValue) {
139
133
  updatedComponent.setContent(matchingTextDisplayValue.content);
@@ -154,7 +148,7 @@ class BaseModal {
154
148
  return new Promise((r, j) => {
155
149
  if (itr.replied || itr.deferred)
156
150
  return j("Interaction already replied.");
157
- const id = node_crypto_1.default.createHash("md5")
151
+ const id = crypto.createHash("md5")
158
152
  .update(Math.floor(Math.random() * (99999999 - 10000000) + 10000000).toString())
159
153
  .digest("hex");
160
154
  itr.showModal(this.getModal().setCustomId(id));
@@ -173,9 +167,8 @@ class BaseModal {
173
167
  });
174
168
  }
175
169
  }
176
- exports.BaseModal = BaseModal;
177
170
  function create(options, components) {
178
- const modal = new discord_js_1.ModalBuilder()
171
+ const modal = new ModalBuilder()
179
172
  .setTitle(options.title)
180
173
  .setCustomId(options.customId);
181
174
  modal.components.push(...components);
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BaseSelectMenu = void 0;
4
- const discord_js_1 = require("discord.js");
5
- const __1 = require("..");
6
- const Util_1 = require("../../utils/Util");
1
+ import { ChannelSelectMenuBuilder, MentionableSelectMenuBuilder, RoleSelectMenuBuilder, StringSelectMenuBuilder, UserSelectMenuBuilder } from "discord.js";
2
+ import { SELECT_MENU_OPTIONS_KEY, SELECT_MENU_TYPE_KEY } from "..";
3
+ import { Util } from "../../utils/Util";
7
4
  /**
8
5
  * The base class for select menus created with the {@link StringSelectMenu}, {@link UserSelectMenu}, {@link RoleSelectMenu}, {@link ChannelSelectMenu}, and {@link MentionableSelectMenu} decorators. This class is used to create a select menu from the options defined in the class, and to override the default options with new options when creating the select menu.
9
6
  *
@@ -39,15 +36,15 @@ const Util_1 = require("../../utils/Util");
39
36
  * }
40
37
  * ```
41
38
  */
42
- class BaseSelectMenu {
39
+ export class BaseSelectMenu {
43
40
  static genericSelectMenu;
44
41
  static options;
45
42
  /** Returns a new {@link SelectMenuBuilder} that was created from the select menu options. */
46
43
  static getSelectMenu() {
47
44
  if (this.genericSelectMenu)
48
45
  return this.genericSelectMenu.copy();
49
- const type = Reflect.getMetadata(__1.SELECT_MENU_TYPE_KEY, this);
50
- const options = Reflect.getMetadata(__1.SELECT_MENU_OPTIONS_KEY, this);
46
+ const type = Reflect.getMetadata(SELECT_MENU_TYPE_KEY, this);
47
+ const options = Reflect.getMetadata(SELECT_MENU_OPTIONS_KEY, this);
51
48
  if (!options)
52
49
  throw new TypeError("Failed to get the select menu.");
53
50
  this.genericSelectMenu = new GenericSelectMenu(type);
@@ -65,22 +62,21 @@ class BaseSelectMenu {
65
62
  if (!this.genericSelectMenu) {
66
63
  this.getSelectMenu();
67
64
  }
68
- const currentOptions = (this.options ?? Reflect.getMetadata(__1.SELECT_MENU_OPTIONS_KEY, this));
65
+ const currentOptions = (this.options ?? Reflect.getMetadata(SELECT_MENU_OPTIONS_KEY, this));
69
66
  if (!currentOptions)
70
67
  throw new TypeError("Failed to get the select menu options.");
71
68
  if (values.length > 0 && !this.genericSelectMenu.isStringSelect())
72
69
  throw new TypeError("Values can only be overridden for StringSelectMenu.");
73
- const newOptions = values.length > 0 ? Util_1.Util.mergeDefault(currentOptions, { ...options, options: values }) : Util_1.Util.mergeDefault(currentOptions, options);
70
+ const newOptions = values.length > 0 ? Util.mergeDefault(currentOptions, { ...options, options: values }) : Util.mergeDefault(currentOptions, options);
74
71
  return this.genericSelectMenu.create(newOptions);
75
72
  }
76
73
  }
77
- exports.BaseSelectMenu = BaseSelectMenu;
78
74
  const SelectMenuBuilders = {
79
- string: discord_js_1.StringSelectMenuBuilder,
80
- user: discord_js_1.UserSelectMenuBuilder,
81
- role: discord_js_1.RoleSelectMenuBuilder,
82
- channel: discord_js_1.ChannelSelectMenuBuilder,
83
- mentionable: discord_js_1.MentionableSelectMenuBuilder,
75
+ string: StringSelectMenuBuilder,
76
+ user: UserSelectMenuBuilder,
77
+ role: RoleSelectMenuBuilder,
78
+ channel: ChannelSelectMenuBuilder,
79
+ mentionable: MentionableSelectMenuBuilder,
84
80
  };
85
81
  class GenericSelectMenu {
86
82
  kind;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Marker class for event listeners. This class is used to identify event listener classes in the event module system.
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * import { Listener } from "oopscord.js";
7
+ *
8
+ * class MyListener extends Listener {
9
+ * @EventHandler("messageCreate")
10
+ * onMessageCreate(message: Message) {
11
+ * message.reply("Hello, World!");
12
+ * }
13
+ * }
14
+ * ```
15
+ */
16
+ export declare class Listener {
17
+ }
18
+ //# sourceMappingURL=Listener.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Listener.d.ts","sourceRoot":"","sources":["../../../src/structures/components/Listener.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,qBAAa,QAAQ;CAAG"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Marker class for event listeners. This class is used to identify event listener classes in the event module system.
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * import { Listener } from "oopscord.js";
7
+ *
8
+ * class MyListener extends Listener {
9
+ * @EventHandler("messageCreate")
10
+ * onMessageCreate(message: Message) {
11
+ * message.reply("Hello, World!");
12
+ * }
13
+ * }
14
+ * ```
15
+ */
16
+ export class Listener {
17
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "./BaseButton";
2
2
  export * from "./BaseSelectMenu";
3
3
  export * from "./BaseModal";
4
+ export * from "./Listener";
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/structures/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/structures/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
@@ -1,19 +1,4 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./BaseButton"), exports);
18
- __exportStar(require("./BaseSelectMenu"), exports);
19
- __exportStar(require("./BaseModal"), exports);
1
+ export * from "./BaseButton";
2
+ export * from "./BaseSelectMenu";
3
+ export * from "./BaseModal";
4
+ export * from "./Listener";
@@ -1,7 +1,7 @@
1
1
  import { ApplicationCommandOptionAllowedChannelTypes, CommandInteractionOptionResolver, ContextMenuCommandType } from "discord.js";
2
2
  import { APIApplicationCommandOptionChoice, ApplicationIntegrationType } from "discord-api-types/v10";
3
3
  export type CommandModuleOptions = {
4
- commands: (new (...args: any[]) => any)[];
4
+ commands?: (new (...args: any[]) => any)[];
5
5
  };
6
6
  export type CommandOptions = {
7
7
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"CommandDecorator.d.ts","sourceRoot":"","sources":["../../../src/structures/decorators/CommandDecorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2CAA2C,EAAE,gCAAgC,EAAE,sBAAsB,EAAuV,MAAM,YAAY,CAAC;AACxd,OAAO,EAAe,iCAAiC,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAInH,MAAM,MAAM,oBAAoB,GAAG;IAAE,QAAQ,EAAE,CAAC,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,EAAE,CAAA;CAAE,CAAA;AAChF,MAAM,MAAM,cAAc,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAA;AAClE,MAAM,MAAM,kBAAkB,GAAG;IAAE,IAAI,EAAE,MAAM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