File tree Expand file tree Collapse file tree 2 files changed +6
-32
lines changed
build/libs/ModuleManager/types Expand file tree Collapse file tree 2 files changed +6
-32
lines changed Original file line number Diff line number Diff line change @@ -4,23 +4,23 @@ export default abstract class ModuleBase {
4
4
/**
5
5
* The name of the module
6
6
*/
7
- readonly name : string ;
7
+ abstract readonly name : string ;
8
8
/**
9
9
* Any Required module the module has
10
10
*/
11
- readonly depend_on ?: string [ ] ;
11
+ abstract readonly depend_on ?: string [ ] ;
12
12
/**
13
13
* The module's development version
14
14
*/
15
- readonly version : string ;
15
+ abstract readonly version : string ;
16
16
/**
17
17
* Short description of what the module is / does
18
18
*/
19
- readonly description : string ;
19
+ abstract readonly description : string ;
20
20
/**
21
21
* The author(s) of the module
22
22
*/
23
- readonly author : string | string [ ] ;
23
+ abstract readonly author : string | string [ ] ;
24
24
/**
25
25
* Module's Commands
26
26
*/
@@ -47,7 +47,7 @@ export default abstract class ModuleBase {
47
47
* Loads the module's resources into the main system
48
48
* @param bot The discord bot client
49
49
*/
50
- load ?: ( client : BotClient ) => Promise < void > | void ;
50
+ abstract load ?: ( client : BotClient ) => Promise < void > | void ;
51
51
/**
52
52
* UnLoads the module's resources into the main system
53
53
* @param bot The discord bot client
Original file line number Diff line number Diff line change 4
4
/* eslint-disable @typescript-eslint/no-empty-function */
5
5
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
6
6
class ModuleBase {
7
- /**
8
- * The name of the module
9
- */
10
- name ;
11
- /**
12
- * Any Required module the module has
13
- */
14
- depend_on ;
15
- /**
16
- * The module's development version
17
- */
18
- version ;
19
- /**
20
- * Short description of what the module is / does
21
- */
22
- description ;
23
- /**
24
- * The author(s) of the module
25
- */
26
- author ;
27
7
/**
28
8
* Module's Commands
29
9
*/
@@ -46,12 +26,6 @@ class ModuleBase {
46
26
* <id, callback>
47
27
*/
48
28
menus ;
49
- /**
50
- * Loads the module's resources into the main system
51
- * @param bot The discord bot client
52
- */
53
- // load(bot: Client): void {}
54
- load ;
55
29
/**
56
30
* UnLoads the module's resources into the main system
57
31
* @param bot The discord bot client
You can’t perform that action at this time.
0 commit comments