@open-discord-bots/framework 0.2.11 → 0.2.13

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 (107) hide show
  1. package/dist/api/index.d.ts +26 -26
  2. package/dist/api/index.js +26 -42
  3. package/dist/api/main.d.ts +24 -24
  4. package/dist/api/main.js +7 -11
  5. package/dist/api/modules/action.d.ts +12 -12
  6. package/dist/api/modules/action.js +11 -17
  7. package/dist/api/modules/base.d.ts +7 -5
  8. package/dist/api/modules/base.js +22 -67
  9. package/dist/api/modules/builder.d.ts +44 -44
  10. package/dist/api/modules/builder.js +81 -142
  11. package/dist/api/modules/checker.d.ts +7 -7
  12. package/dist/api/modules/checker.js +55 -87
  13. package/dist/api/modules/client.d.ts +4 -4
  14. package/dist/api/modules/client.js +71 -118
  15. package/dist/api/modules/code.d.ts +2 -2
  16. package/dist/api/modules/code.js +3 -8
  17. package/dist/api/modules/config.d.ts +2 -2
  18. package/dist/api/modules/config.js +21 -63
  19. package/dist/api/modules/console.d.ts +16 -16
  20. package/dist/api/modules/console.js +61 -83
  21. package/dist/api/modules/cooldown.d.ts +2 -2
  22. package/dist/api/modules/cooldown.js +13 -23
  23. package/dist/api/modules/database.d.ts +2 -2
  24. package/dist/api/modules/database.js +19 -29
  25. package/dist/api/modules/event.d.ts +2 -2
  26. package/dist/api/modules/event.js +6 -11
  27. package/dist/api/modules/flag.d.ts +2 -2
  28. package/dist/api/modules/flag.js +3 -8
  29. package/dist/api/modules/fuse.js +2 -7
  30. package/dist/api/modules/helpmenu.d.ts +2 -2
  31. package/dist/api/modules/helpmenu.js +8 -16
  32. package/dist/api/modules/language.d.ts +2 -2
  33. package/dist/api/modules/language.js +12 -21
  34. package/dist/api/modules/permission.d.ts +3 -3
  35. package/dist/api/modules/permission.js +9 -47
  36. package/dist/api/modules/plugin.d.ts +2 -2
  37. package/dist/api/modules/plugin.js +9 -18
  38. package/dist/api/modules/post.d.ts +3 -3
  39. package/dist/api/modules/post.js +3 -8
  40. package/dist/api/modules/progressbar.d.ts +2 -2
  41. package/dist/api/modules/progressbar.js +14 -26
  42. package/dist/api/modules/responder.d.ts +42 -42
  43. package/dist/api/modules/responder.js +79 -138
  44. package/dist/api/modules/session.d.ts +2 -2
  45. package/dist/api/modules/session.js +4 -42
  46. package/dist/api/modules/startscreen.d.ts +4 -4
  47. package/dist/api/modules/startscreen.js +28 -44
  48. package/dist/api/modules/statistic.d.ts +3 -3
  49. package/dist/api/modules/statistic.js +11 -22
  50. package/dist/api/modules/verifybar.d.ts +5 -5
  51. package/dist/api/modules/verifybar.js +6 -11
  52. package/dist/api/modules/worker.d.ts +15 -15
  53. package/dist/api/modules/worker.js +12 -17
  54. package/dist/cli/editConfig.d.ts +2 -2
  55. package/dist/cli/editConfig.js +194 -248
  56. package/dist/cli/index.d.ts +2 -2
  57. package/dist/cli/index.js +37 -62
  58. package/dist/index.d.ts +4 -4
  59. package/dist/index.js +6 -13
  60. package/dist/startup/compilation.d.ts +1 -1
  61. package/dist/startup/compilation.js +35 -42
  62. package/dist/startup/dump.d.ts +1 -1
  63. package/dist/startup/dump.js +4 -41
  64. package/dist/startup/errorHandling.d.ts +1 -1
  65. package/dist/startup/errorHandling.js +2 -38
  66. package/dist/startup/pluginLauncher.d.ts +1 -1
  67. package/dist/startup/pluginLauncher.js +14 -52
  68. package/dist/utilities/index.d.ts +3 -3
  69. package/dist/utilities/index.js +20 -71
  70. package/package.json +5 -4
  71. package/src/api/index.ts +26 -26
  72. package/src/api/main.ts +25 -25
  73. package/src/api/modules/action.ts +13 -13
  74. package/src/api/modules/base.ts +14 -10
  75. package/src/api/modules/builder.ts +56 -56
  76. package/src/api/modules/checker.ts +7 -7
  77. package/src/api/modules/client.ts +18 -18
  78. package/src/api/modules/code.ts +2 -2
  79. package/src/api/modules/component.txt +350 -0
  80. package/src/api/modules/config.ts +3 -3
  81. package/src/api/modules/console.ts +28 -28
  82. package/src/api/modules/cooldown.ts +2 -2
  83. package/src/api/modules/database.ts +3 -3
  84. package/src/api/modules/event.ts +5 -5
  85. package/src/api/modules/flag.ts +2 -2
  86. package/src/api/modules/helpmenu.ts +4 -4
  87. package/src/api/modules/language.ts +3 -3
  88. package/src/api/modules/permission.ts +3 -3
  89. package/src/api/modules/plugin.ts +4 -4
  90. package/src/api/modules/post.ts +3 -3
  91. package/src/api/modules/progressbar.ts +5 -3
  92. package/src/api/modules/responder.ts +48 -48
  93. package/src/api/modules/session.ts +2 -2
  94. package/src/api/modules/startscreen.ts +4 -4
  95. package/src/api/modules/statistic.ts +3 -4
  96. package/src/api/modules/verifybar.ts +5 -5
  97. package/src/api/modules/worker.ts +25 -25
  98. package/src/cli/editConfig.ts +23 -37
  99. package/src/cli/index.ts +3 -3
  100. package/src/index.ts +5 -5
  101. package/src/startup/compilation.ts +2 -2
  102. package/src/startup/dump.ts +2 -2
  103. package/src/startup/errorHandling.ts +2 -2
  104. package/src/startup/pluginLauncher.ts +11 -8
  105. package/src/utilities/index.ts +4 -4
  106. package/tools/cleanup.js +1 -1
  107. package/tsconfig.json +2 -1
@@ -1,7 +1,7 @@
1
- import { ODId, ODValidButtonColor, ODValidId, ODInterfaceWithPartialProperty, ODManagerWithSafety, ODManagerData, ODNoGeneric } from "./base";
1
+ import { ODId, ODValidButtonColor, ODValidId, ODInterfaceWithPartialProperty, ODManagerWithSafety, ODManagerData, ODNoGeneric } from "./base.js";
2
2
  import * as discord from "discord.js";
3
- import { ODWorkerManager, ODWorkerCallback } from "./worker";
4
- import { ODDebugger } from "./console";
3
+ import { ODWorkerManager, ODWorkerCallback } from "./worker.js";
4
+ import { ODDebugger } from "./console.js";
5
5
  /**## ODBuilderImplementation `class`
6
6
  * This is an Open Discord builder implementation.
7
7
  *
@@ -9,24 +9,24 @@ import { ODDebugger } from "./console";
9
9
  *
10
10
  * This class can't be used stand-alone & needs to be extended from!
11
11
  */
12
- export declare class ODBuilderImplementation<Instance, Source extends string, Params, BuildType extends {
12
+ export declare class ODBuilderImplementation<Instance, Origin extends string, Params, BuildType extends {
13
13
  id: ODId;
14
14
  }, WorkerIds extends string = string> extends ODManagerData {
15
15
  /**The manager that has all workers of this implementation */
16
- workers: ODWorkerManager<Instance, Source, Params, WorkerIds>;
16
+ workers: ODWorkerManager<Instance, Origin, Params, WorkerIds>;
17
17
  /**Cache a build or create it every time from scratch when this.build() gets executed. */
18
18
  allowCache: boolean;
19
19
  /**Did the build already got created/cached? */
20
20
  didCache: boolean;
21
21
  /**The cache of this build. */
22
22
  cache: BuildType | null;
23
- constructor(id: ODValidId, callback?: ODWorkerCallback<Instance, Source, Params>, priority?: number, callbackId?: ODValidId);
23
+ constructor(id: ODValidId, callback?: ODWorkerCallback<Instance, Origin, Params>, priority?: number, callbackId?: ODValidId);
24
24
  /**Set if caching is allowed */
25
25
  setCacheMode(allowed: boolean): this;
26
26
  /**Reset the current cache */
27
27
  resetCache(): this;
28
28
  /**Execute all workers & return the result. */
29
- build(source: Source, params: Params): Promise<BuildType>;
29
+ build(origin: Origin, params: Params): Promise<BuildType>;
30
30
  }
31
31
  /**## ODBuilderManager `class`
32
32
  * This is an Open Discord builder manager.
@@ -39,7 +39,7 @@ export declare class ODBuilderImplementation<Instance, Source extends string, Pa
39
39
  * - independent workers (with priority)
40
40
  * - fail-safe design using try-catch
41
41
  * - cache frequently used objects
42
- * - get to know the source of the build request for a specific message, button, etc
42
+ * - get to know the origin of the build request for a specific message, button, etc
43
43
  * - And so much more!
44
44
  */
45
45
  export declare class ODBuilderManager<ButtonIdList extends ODButtonManagerIdConstraint = ODButtonManagerIdConstraint, DropdownIdList extends ODDropdownManagerIdConstraint = ODDropdownManagerIdConstraint, FileIdList extends ODFileManagerIdConstraint = ODFileManagerIdConstraint, EmbedIdList extends ODEmbedManagerIdConstraint = ODEmbedManagerIdConstraint, MessageIdList extends ODMessageManagerIdConstraint = ODMessageManagerIdConstraint, ModalIdList extends ODModalManagerIdConstraint = ODModalManagerIdConstraint> {
@@ -70,7 +70,7 @@ export interface ODComponentBuildResult {
70
70
  * The constraint/layout for id mappings/interfaces of the `ODButtonManager` class.
71
71
  */
72
72
  export type ODButtonManagerIdConstraint = Record<string, {
73
- source: string;
73
+ origin: string;
74
74
  params: object;
75
75
  workers: string;
76
76
  }>;
@@ -85,13 +85,13 @@ export declare class ODButtonManager<IdList extends ODButtonManagerIdConstraint
85
85
  constructor(debug: ODDebugger);
86
86
  /**Get a newline component for buttons & dropdowns! */
87
87
  getNewLine(id: ODValidId): ODComponentBuildResult;
88
- get<ButtonId extends keyof ODNoGeneric<IdList>>(id: ButtonId): ODButton<IdList[ButtonId]["source"], IdList[ButtonId]["params"], IdList[ButtonId]["workers"]>;
88
+ get<ButtonId extends keyof ODNoGeneric<IdList>>(id: ButtonId): ODButton<IdList[ButtonId]["origin"], IdList[ButtonId]["params"], IdList[ButtonId]["workers"]>;
89
89
  get(id: ODValidId): ODButton<string, {}, string> | null;
90
- remove<ButtonId extends keyof ODNoGeneric<IdList>>(id: ButtonId): ODButton<IdList[ButtonId]["source"], IdList[ButtonId]["params"], IdList[ButtonId]["workers"]>;
90
+ remove<ButtonId extends keyof ODNoGeneric<IdList>>(id: ButtonId): ODButton<IdList[ButtonId]["origin"], IdList[ButtonId]["params"], IdList[ButtonId]["workers"]>;
91
91
  remove(id: ODValidId): ODButton<string, {}, string> | null;
92
92
  exists(id: keyof ODNoGeneric<IdList>): boolean;
93
93
  exists(id: ODValidId): boolean;
94
- getSafe<ButtonId extends keyof ODNoGeneric<IdList>>(id: ButtonId): ODButton<IdList[ButtonId]["source"], IdList[ButtonId]["params"], IdList[ButtonId]["workers"]>;
94
+ getSafe<ButtonId extends keyof ODNoGeneric<IdList>>(id: ButtonId): ODButton<IdList[ButtonId]["origin"], IdList[ButtonId]["params"], IdList[ButtonId]["workers"]>;
95
95
  getSafe(id: ODValidId): ODButton<string, {}, string>;
96
96
  }
97
97
  /**## ODButtonData `interface`
@@ -144,9 +144,9 @@ export declare class ODButtonInstance {
144
144
  *
145
145
  * This is possible by using "workers" or multiple functions that will be executed in priority order!
146
146
  */
147
- export declare class ODButton<Source extends string, Params, WorkerIds extends string = string> extends ODBuilderImplementation<ODButtonInstance, Source, Params, ODComponentBuildResult, WorkerIds> {
147
+ export declare class ODButton<Origin extends string, Params, WorkerIds extends string = string> extends ODBuilderImplementation<ODButtonInstance, Origin, Params, ODComponentBuildResult, WorkerIds> {
148
148
  /**Build this button & compile it for discord.js */
149
- build(source: Source, params: Params): Promise<ODComponentBuildResult>;
149
+ build(origin: Origin, params: Params): Promise<ODComponentBuildResult>;
150
150
  }
151
151
  /**## ODQuickButton `class`
152
152
  * This is an Open Discord quick button builder.
@@ -169,7 +169,7 @@ export declare class ODQuickButton {
169
169
  * The constraint/layout for id mappings/interfaces of the `ODDropdownManager` class.
170
170
  */
171
171
  export type ODDropdownManagerIdConstraint = Record<string, {
172
- source: string;
172
+ origin: string;
173
173
  params: object;
174
174
  workers: string;
175
175
  }>;
@@ -184,13 +184,13 @@ export declare class ODDropdownManager<IdList extends ODDropdownManagerIdConstra
184
184
  constructor(debug: ODDebugger);
185
185
  /**Get a newline component for buttons & dropdowns! */
186
186
  getNewLine(id: ODValidId): ODComponentBuildResult;
187
- get<DropdownId extends keyof ODNoGeneric<IdList>>(id: DropdownId): ODDropdown<IdList[DropdownId]["source"], IdList[DropdownId]["params"], IdList[DropdownId]["workers"]>;
187
+ get<DropdownId extends keyof ODNoGeneric<IdList>>(id: DropdownId): ODDropdown<IdList[DropdownId]["origin"], IdList[DropdownId]["params"], IdList[DropdownId]["workers"]>;
188
188
  get(id: ODValidId): ODDropdown<string, {}, string> | null;
189
- remove<DropdownId extends keyof ODNoGeneric<IdList>>(id: DropdownId): ODDropdown<IdList[DropdownId]["source"], IdList[DropdownId]["params"], IdList[DropdownId]["workers"]>;
189
+ remove<DropdownId extends keyof ODNoGeneric<IdList>>(id: DropdownId): ODDropdown<IdList[DropdownId]["origin"], IdList[DropdownId]["params"], IdList[DropdownId]["workers"]>;
190
190
  remove(id: ODValidId): ODDropdown<string, {}, string> | null;
191
191
  exists(id: keyof ODNoGeneric<IdList>): boolean;
192
192
  exists(id: ODValidId): boolean;
193
- getSafe<DropdownId extends keyof ODNoGeneric<IdList>>(id: DropdownId): ODDropdown<IdList[DropdownId]["source"], IdList[DropdownId]["params"], IdList[DropdownId]["workers"]>;
193
+ getSafe<DropdownId extends keyof ODNoGeneric<IdList>>(id: DropdownId): ODDropdown<IdList[DropdownId]["origin"], IdList[DropdownId]["params"], IdList[DropdownId]["workers"]>;
194
194
  getSafe(id: ODValidId): ODDropdown<string, {}, string>;
195
195
  }
196
196
  /**## ODDropdownData `interface`
@@ -263,9 +263,9 @@ export declare class ODDropdownInstance {
263
263
  *
264
264
  * This is possible by using "workers" or multiple functions that will be executed in priority order!
265
265
  */
266
- export declare class ODDropdown<Source extends string, Params, WorkerIds extends string = string> extends ODBuilderImplementation<ODDropdownInstance, Source, Params, ODComponentBuildResult, WorkerIds> {
266
+ export declare class ODDropdown<Origin extends string, Params, WorkerIds extends string = string> extends ODBuilderImplementation<ODDropdownInstance, Origin, Params, ODComponentBuildResult, WorkerIds> {
267
267
  /**Build this dropdown & compile it for discord.js */
268
- build(source: Source, params: Params): Promise<ODComponentBuildResult>;
268
+ build(origin: Origin, params: Params): Promise<ODComponentBuildResult>;
269
269
  }
270
270
  /**## ODQuickDropdown `class`
271
271
  * This is an Open Discord quick dropdown builder.
@@ -288,7 +288,7 @@ export declare class ODQuickDropdown {
288
288
  * The constraint/layout for id mappings/interfaces of the `ODFileManager` class.
289
289
  */
290
290
  export type ODFileManagerIdConstraint = Record<string, {
291
- source: string;
291
+ origin: string;
292
292
  params: object;
293
293
  workers: string;
294
294
  }>;
@@ -301,13 +301,13 @@ export type ODFileManagerIdConstraint = Record<string, {
301
301
  */
302
302
  export declare class ODFileManager<IdList extends ODFileManagerIdConstraint = ODFileManagerIdConstraint> extends ODManagerWithSafety<ODFile<string, {}, string>> {
303
303
  constructor(debug: ODDebugger);
304
- get<FileId extends keyof ODNoGeneric<IdList>>(id: FileId): ODFile<IdList[FileId]["source"], IdList[FileId]["params"], IdList[FileId]["workers"]>;
304
+ get<FileId extends keyof ODNoGeneric<IdList>>(id: FileId): ODFile<IdList[FileId]["origin"], IdList[FileId]["params"], IdList[FileId]["workers"]>;
305
305
  get(id: ODValidId): ODFile<string, {}, string> | null;
306
- remove<FileId extends keyof ODNoGeneric<IdList>>(id: FileId): ODFile<IdList[FileId]["source"], IdList[FileId]["params"], IdList[FileId]["workers"]>;
306
+ remove<FileId extends keyof ODNoGeneric<IdList>>(id: FileId): ODFile<IdList[FileId]["origin"], IdList[FileId]["params"], IdList[FileId]["workers"]>;
307
307
  remove(id: ODValidId): ODFile<string, {}, string> | null;
308
308
  exists(id: keyof ODNoGeneric<IdList>): boolean;
309
309
  exists(id: ODValidId): boolean;
310
- getSafe<FileId extends keyof ODNoGeneric<IdList>>(id: FileId): ODFile<IdList[FileId]["source"], IdList[FileId]["params"], IdList[FileId]["workers"]>;
310
+ getSafe<FileId extends keyof ODNoGeneric<IdList>>(id: FileId): ODFile<IdList[FileId]["origin"], IdList[FileId]["params"], IdList[FileId]["workers"]>;
311
311
  getSafe(id: ODValidId): ODFile<string, {}, string>;
312
312
  }
313
313
  /**## ODFileData `interface`
@@ -359,9 +359,9 @@ export declare class ODFileInstance {
359
359
  *
360
360
  * This is possible by using "workers" or multiple functions that will be executed in priority order!
361
361
  */
362
- export declare class ODFile<Source extends string, Params, WorkerIds extends string = string> extends ODBuilderImplementation<ODFileInstance, Source, Params, ODFileBuildResult, WorkerIds> {
362
+ export declare class ODFile<Origin extends string, Params, WorkerIds extends string = string> extends ODBuilderImplementation<ODFileInstance, Origin, Params, ODFileBuildResult, WorkerIds> {
363
363
  /**Build this attachment & compile it for discord.js */
364
- build(source: Source, params: Params): Promise<ODFileBuildResult>;
364
+ build(origin: Origin, params: Params): Promise<ODFileBuildResult>;
365
365
  }
366
366
  /**## ODQuickFile `class`
367
367
  * This is an Open Discord quick file builder.
@@ -384,7 +384,7 @@ export declare class ODQuickFile {
384
384
  * The constraint/layout for id mappings/interfaces of the `ODEmbedManager` class.
385
385
  */
386
386
  export type ODEmbedManagerIdConstraint = Record<string, {
387
- source: string;
387
+ origin: string;
388
388
  params: object;
389
389
  workers: string;
390
390
  }>;
@@ -397,13 +397,13 @@ export type ODEmbedManagerIdConstraint = Record<string, {
397
397
  */
398
398
  export declare class ODEmbedManager<IdList extends ODEmbedManagerIdConstraint = ODEmbedManagerIdConstraint> extends ODManagerWithSafety<ODEmbed<string, {}, string>> {
399
399
  constructor(debug: ODDebugger);
400
- get<EmbedId extends keyof ODNoGeneric<IdList>>(id: EmbedId): ODEmbed<IdList[EmbedId]["source"], IdList[EmbedId]["params"], IdList[EmbedId]["workers"]>;
400
+ get<EmbedId extends keyof ODNoGeneric<IdList>>(id: EmbedId): ODEmbed<IdList[EmbedId]["origin"], IdList[EmbedId]["params"], IdList[EmbedId]["workers"]>;
401
401
  get(id: ODValidId): ODEmbed<string, {}, string> | null;
402
- remove<EmbedId extends keyof ODNoGeneric<IdList>>(id: EmbedId): ODEmbed<IdList[EmbedId]["source"], IdList[EmbedId]["params"], IdList[EmbedId]["workers"]>;
402
+ remove<EmbedId extends keyof ODNoGeneric<IdList>>(id: EmbedId): ODEmbed<IdList[EmbedId]["origin"], IdList[EmbedId]["params"], IdList[EmbedId]["workers"]>;
403
403
  remove(id: ODValidId): ODEmbed<string, {}, string> | null;
404
404
  exists(id: keyof ODNoGeneric<IdList>): boolean;
405
405
  exists(id: ODValidId): boolean;
406
- getSafe<EmbedId extends keyof ODNoGeneric<IdList>>(id: EmbedId): ODEmbed<IdList[EmbedId]["source"], IdList[EmbedId]["params"], IdList[EmbedId]["workers"]>;
406
+ getSafe<EmbedId extends keyof ODNoGeneric<IdList>>(id: EmbedId): ODEmbed<IdList[EmbedId]["origin"], IdList[EmbedId]["params"], IdList[EmbedId]["workers"]>;
407
407
  getSafe(id: ODValidId): ODEmbed<string, {}, string>;
408
408
  }
409
409
  /**## ODEmbedData `interface`
@@ -487,9 +487,9 @@ export declare class ODEmbedInstance {
487
487
  *
488
488
  * This is possible by using "workers" or multiple functions that will be executed in priority order!
489
489
  */
490
- export declare class ODEmbed<Source extends string, Params, WorkerIds extends string = string> extends ODBuilderImplementation<ODEmbedInstance, Source, Params, ODEmbedBuildResult, WorkerIds> {
490
+ export declare class ODEmbed<Origin extends string, Params, WorkerIds extends string = string> extends ODBuilderImplementation<ODEmbedInstance, Origin, Params, ODEmbedBuildResult, WorkerIds> {
491
491
  /**Build this embed & compile it for discord.js */
492
- build(source: Source, params: Params): Promise<ODEmbedBuildResult>;
492
+ build(origin: Origin, params: Params): Promise<ODEmbedBuildResult>;
493
493
  }
494
494
  /**## ODQuickEmbed `class`
495
495
  * This is an Open Discord quick embed builder.
@@ -512,7 +512,7 @@ export declare class ODQuickEmbed {
512
512
  * The constraint/layout for id mappings/interfaces of the `ODMessageManager` class.
513
513
  */
514
514
  export type ODMessageManagerIdConstraint = Record<string, {
515
- source: string;
515
+ origin: string;
516
516
  params: object;
517
517
  workers: string;
518
518
  }>;
@@ -525,13 +525,13 @@ export type ODMessageManagerIdConstraint = Record<string, {
525
525
  */
526
526
  export declare class ODMessageManager<IdList extends ODMessageManagerIdConstraint = ODMessageManagerIdConstraint> extends ODManagerWithSafety<ODMessage<string, {}, string>> {
527
527
  constructor(debug: ODDebugger);
528
- get<MessageId extends keyof ODNoGeneric<IdList>>(id: MessageId): ODMessage<IdList[MessageId]["source"], IdList[MessageId]["params"], IdList[MessageId]["workers"]>;
528
+ get<MessageId extends keyof ODNoGeneric<IdList>>(id: MessageId): ODMessage<IdList[MessageId]["origin"], IdList[MessageId]["params"], IdList[MessageId]["workers"]>;
529
529
  get(id: ODValidId): ODMessage<string, {}, string> | null;
530
- remove<MessageId extends keyof ODNoGeneric<IdList>>(id: MessageId): ODMessage<IdList[MessageId]["source"], IdList[MessageId]["params"], IdList[MessageId]["workers"]>;
530
+ remove<MessageId extends keyof ODNoGeneric<IdList>>(id: MessageId): ODMessage<IdList[MessageId]["origin"], IdList[MessageId]["params"], IdList[MessageId]["workers"]>;
531
531
  remove(id: ODValidId): ODMessage<string, {}, string> | null;
532
532
  exists(id: keyof ODNoGeneric<IdList>): boolean;
533
533
  exists(id: ODValidId): boolean;
534
- getSafe<MessageId extends keyof ODNoGeneric<IdList>>(id: MessageId): ODMessage<IdList[MessageId]["source"], IdList[MessageId]["params"], IdList[MessageId]["workers"]>;
534
+ getSafe<MessageId extends keyof ODNoGeneric<IdList>>(id: MessageId): ODMessage<IdList[MessageId]["origin"], IdList[MessageId]["params"], IdList[MessageId]["workers"]>;
535
535
  getSafe(id: ODValidId): ODMessage<string, {}, string>;
536
536
  }
537
537
  /**## ODMessageData `interface`
@@ -620,9 +620,9 @@ export declare class ODMessageInstance {
620
620
  *
621
621
  * This is possible by using "workers" or multiple functions that will be executed in priority order!
622
622
  */
623
- export declare class ODMessage<Source extends string, Params, WorkerIds extends string = string> extends ODBuilderImplementation<ODMessageInstance, Source, Params, ODMessageBuildResult, WorkerIds> {
623
+ export declare class ODMessage<Origin extends string, Params, WorkerIds extends string = string> extends ODBuilderImplementation<ODMessageInstance, Origin, Params, ODMessageBuildResult, WorkerIds> {
624
624
  /**Build this message & compile it for discord.js */
625
- build(source: Source, params: Params): Promise<ODMessageBuildResult>;
625
+ build(origin: Origin, params: Params): Promise<ODMessageBuildResult>;
626
626
  }
627
627
  /**## ODQuickMessage `class`
628
628
  * This is an Open Discord quick message builder.
@@ -645,7 +645,7 @@ export declare class ODQuickMessage {
645
645
  * The constraint/layout for id mappings/interfaces of the `ODModalManager` class.
646
646
  */
647
647
  export type ODModalManagerIdConstraint = Record<string, {
648
- source: string;
648
+ origin: string;
649
649
  params: object;
650
650
  workers: string;
651
651
  }>;
@@ -658,13 +658,13 @@ export type ODModalManagerIdConstraint = Record<string, {
658
658
  */
659
659
  export declare class ODModalManager<IdList extends ODModalManagerIdConstraint = ODModalManagerIdConstraint> extends ODManagerWithSafety<ODModal<string, {}, string>> {
660
660
  constructor(debug: ODDebugger);
661
- get<ModalId extends keyof ODNoGeneric<IdList>>(id: ModalId): ODModal<IdList[ModalId]["source"], IdList[ModalId]["params"], IdList[ModalId]["workers"]>;
661
+ get<ModalId extends keyof ODNoGeneric<IdList>>(id: ModalId): ODModal<IdList[ModalId]["origin"], IdList[ModalId]["params"], IdList[ModalId]["workers"]>;
662
662
  get(id: ODValidId): ODModal<string, {}, string> | null;
663
- remove<ModalId extends keyof ODNoGeneric<IdList>>(id: ModalId): ODModal<IdList[ModalId]["source"], IdList[ModalId]["params"], IdList[ModalId]["workers"]>;
663
+ remove<ModalId extends keyof ODNoGeneric<IdList>>(id: ModalId): ODModal<IdList[ModalId]["origin"], IdList[ModalId]["params"], IdList[ModalId]["workers"]>;
664
664
  remove(id: ODValidId): ODModal<string, {}, string> | null;
665
665
  exists(id: keyof ODNoGeneric<IdList>): boolean;
666
666
  exists(id: ODValidId): boolean;
667
- getSafe<ModalId extends keyof ODNoGeneric<IdList>>(id: ModalId): ODModal<IdList[ModalId]["source"], IdList[ModalId]["params"], IdList[ModalId]["workers"]>;
667
+ getSafe<ModalId extends keyof ODNoGeneric<IdList>>(id: ModalId): ODModal<IdList[ModalId]["origin"], IdList[ModalId]["params"], IdList[ModalId]["workers"]>;
668
668
  getSafe(id: ODValidId): ODModal<string, {}, string>;
669
669
  }
670
670
  /**## ODModalDataQuestion `interface`
@@ -737,7 +737,7 @@ export declare class ODModalInstance {
737
737
  *
738
738
  * This is possible by using "workers" or multiple functions that will be executed in priority order!
739
739
  */
740
- export declare class ODModal<Source extends string, Params, WorkerIds extends string = string> extends ODBuilderImplementation<ODModalInstance, Source, Params, ODModalBuildResult, WorkerIds> {
740
+ export declare class ODModal<Origin extends string, Params, WorkerIds extends string = string> extends ODBuilderImplementation<ODModalInstance, Origin, Params, ODModalBuildResult, WorkerIds> {
741
741
  /**Build this modal & compile it for discord.js */
742
- build(source: Source, params: Params): Promise<ODModalBuildResult>;
742
+ build(origin: Origin, params: Params): Promise<ODModalBuildResult>;
743
743
  }