reciple 10.0.40 → 10.0.42

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,15 +1,15 @@
1
1
  import { BaseModule } from 'reciple';
2
2
 
3
3
  export class $MODULE_NAME$ extends BaseModule {
4
- async onEnable({ client }: BaseModule.EventData<false>) {
4
+ public async onEnable({ client }: BaseModule.EventData<false>): Promise<void> {
5
5
  // Write your code here
6
6
  }
7
7
 
8
- async onReady({ client }: BaseModule.EventData<true>) {
8
+ public async onReady({ client }: BaseModule.EventData<true>): Promise<void> {
9
9
  // Write your code here
10
10
  }
11
11
 
12
- async onDisable({ client }: BaseModule.EventData<true>) {
12
+ public async onDisable({ client }: BaseModule.EventData<true>): Promise<void> {
13
13
  // Write your code here
14
14
  }
15
15
  }
@@ -2,11 +2,11 @@ import { ClientEventModule } from "reciple";
2
2
 
3
3
  // @ts-expect-error
4
4
  export class $MODULE_NAME$ extends ClientEventModule<'$EVENT_NAME$'> {
5
- event = '$EVENT_NAME$' as const;
5
+ public event = '$EVENT_NAME$' as const;
6
6
  // @ts-expect-error
7
- once = $EVENT_ONCE$;
7
+ public once = $EVENT_ONCE$;
8
8
 
9
- onEvent() {
9
+ public onEvent(): void {
10
10
  // Write your code here
11
11
  }
12
12
  }
@@ -1,13 +1,13 @@
1
1
  import { ContextMenuCommandBuilder, ContextMenuCommandModule, type ContextMenuCommand } from "reciple";
2
2
 
3
3
  export class $MODULE_NAME$ extends ContextMenuCommandModule {
4
- data = new ContextMenuCommandBuilder()
4
+ public data = new ContextMenuCommandBuilder()
5
5
  .setName('$COMMAND_NAME$')
6
6
  // @ts-expect-error
7
7
  .setType($COMMAND_CONTEXT_MENU_TYPE$)
8
8
  .toJSON();
9
9
 
10
- async execute({ interaction }: ContextMenuCommand.ExecuteData) {
10
+ public async execute({ interaction }: ContextMenuCommand.ExecuteData): Promise<void> {
11
11
  // Write your code here
12
12
  }
13
13
  }
@@ -2,13 +2,13 @@ import { EventModule } from "reciple";
2
2
 
3
3
  export class $MODULE_NAME$ extends EventModule {
4
4
  // @ts-expect-error
5
- emitter = $EVENT_EMITTER$;
6
- event = '$EVENT_NAME$';
5
+ public emitter = $EVENT_EMITTER$;
6
+ public event = '$EVENT_NAME$';
7
7
  // @ts-expect-error
8
- once = $EVENT_ONCE$;
8
+ public once = $EVENT_ONCE$;
9
9
 
10
10
  // @ts-expect-error
11
- onEvent(...args) {
11
+ public onEvent(...args): void {
12
12
  // Write your code here
13
13
  }
14
14
  }
@@ -1,12 +1,12 @@
1
1
  import { MessageCommandBuilder, MessageCommandModule, type MessageCommand } from "reciple";
2
2
 
3
3
  export class $MODULE_NAME$ extends MessageCommandModule {
4
- data = new MessageCommandBuilder()
4
+ public data = new MessageCommandBuilder()
5
5
  .setName('$COMMAND_NAME$')
6
6
  .setDescription('$COMMAND_DESCRIPTION$')
7
7
  .toJSON();
8
8
 
9
- async execute({ message }: MessageCommand.ExecuteData) {
9
+ public async execute({ message }: MessageCommand.ExecuteData): Promise<void> {
10
10
  // Write your code here
11
11
  }
12
12
  }
@@ -2,11 +2,11 @@ import { RESTEventModule } from "reciple";
2
2
 
3
3
  // @ts-expect-error
4
4
  export class $MODULE_NAME$ extends RESTEventModule<'$EVENT_NAME$'> {
5
- event: '$EVENT_NAME$' = '$EVENT_NAME$';
5
+ public event: '$EVENT_NAME$' = '$EVENT_NAME$';
6
6
  // @ts-expect-error
7
- once = $EVENT_ONCE$;
7
+ public once = $EVENT_ONCE$;
8
8
 
9
- onEvent() {
9
+ public onEvent(): void {
10
10
  // Write your code here
11
11
  }
12
12
  }
@@ -1,12 +1,12 @@
1
1
  import { SlashCommandBuilder, SlashCommandModule, type SlashCommand } from "reciple";
2
2
 
3
3
  export class $MODULE_NAME$ extends SlashCommandModule {
4
- data = new SlashCommandBuilder()
4
+ public data = new SlashCommandBuilder()
5
5
  .setName('$COMMAND_NAME$')
6
6
  .setDescription('$COMMAND_DESCRIPTION$')
7
7
  .toJSON();
8
8
 
9
- async execute({ interaction }: SlashCommand.ExecuteData) {
9
+ public async execute({ interaction }: SlashCommand.ExecuteData): Promise<void> {
10
10
  // Write your code here
11
11
  }
12
12
  }
@@ -94,7 +94,7 @@ var CLI = class {
94
94
  (function(_CLI) {
95
95
  _CLI.root = path.join(path.dirname(fileURLToPath(import.meta.url)), "../../../");
96
96
  _CLI.bin = path.join(CLI.root, "dist/bin/reciple.mjs");
97
- _CLI.version = "10.0.40";
97
+ _CLI.version = "10.0.42";
98
98
  function stringifyFlags(flags, command, ignored = []) {
99
99
  let arr = [];
100
100
  for (const [key, value] of Object.entries(flags)) {
package/dist/package.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  //#region package.json
2
2
  var package_default = {
3
3
  name: "reciple",
4
- version: "10.0.40",
4
+ version: "10.0.42",
5
5
  license: "LGPL-3.0-only",
6
6
  description: "The CLI for reciple",
7
7
  module: "./dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reciple",
3
- "version": "10.0.40",
3
+ "version": "10.0.42",
4
4
  "license": "LGPL-3.0-only",
5
5
  "description": "The CLI for reciple",
6
6
  "module": "./dist/index.mjs",