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.
- package/assets/modules/typescript/Base.ts +3 -3
- package/assets/modules/typescript/ClientEvent.ts +3 -3
- package/assets/modules/typescript/ContextMenuCommand.ts +2 -2
- package/assets/modules/typescript/Event.ts +4 -4
- package/assets/modules/typescript/MessageCommand.ts +2 -2
- package/assets/modules/typescript/RESTEvent.ts +3 -3
- package/assets/modules/typescript/SlashCommand.ts +2 -2
- package/dist/classes/cli/CLI.mjs +1 -1
- package/dist/package.mjs +1 -1
- package/package.json +1 -1
|
@@ -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
|
}
|
package/dist/classes/cli/CLI.mjs
CHANGED
|
@@ -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.
|
|
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