reciple 5.4.1-pre.2 → 5.4.1-pre.5
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/bin/mjs/bin.js +4 -4
- package/bin/mjs/index.js +17 -17
- package/bin/mjs/reciple/classes/RecipleClient.js +13 -13
- package/bin/mjs/reciple/classes/RecipleConfig.js +2 -2
- package/bin/mjs/reciple/classes/builders/MessageCommandBuilder.js +3 -3
- package/bin/mjs/reciple/classes/builders/SlashCommandBuilder.js +2 -2
- package/bin/mjs/reciple/flags.js +1 -1
- package/bin/mjs/reciple/logger.js +1 -1
- package/bin/mjs/reciple/modules.js +5 -5
- package/bin/mjs/reciple/registerApplicationCommands.js +1 -1
- package/package.json +2 -4
package/bin/mjs/bin.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { RecipleClient } from './reciple/classes/RecipleClient';
|
|
3
|
-
import { RecipleConfig } from './reciple/classes/RecipleConfig';
|
|
4
|
-
import { rawVersion } from './reciple/version';
|
|
2
|
+
import { RecipleClient } from './reciple/classes/RecipleClient.js';
|
|
3
|
+
import { RecipleConfig } from './reciple/classes/RecipleConfig.js';
|
|
4
|
+
import { rawVersion } from './reciple/version.js';
|
|
5
5
|
import { existsSync, readdirSync } from 'fs';
|
|
6
|
-
import { cwd, flags } from './reciple/flags';
|
|
6
|
+
import { cwd, flags } from './reciple/flags.js';
|
|
7
7
|
import { input } from 'fallout-utility';
|
|
8
8
|
import chalk from 'chalk';
|
|
9
9
|
import 'dotenv/config';
|
package/bin/mjs/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export * from './reciple/classes/CommandCooldownManager';
|
|
2
|
-
export * from './reciple/classes/MessageCommandOptionManager';
|
|
3
|
-
export * from './reciple/classes/RecipleClient';
|
|
4
|
-
export * from './reciple/classes/RecipleConfig';
|
|
5
|
-
export * from './reciple/classes/builders/MessageCommandBuilder';
|
|
6
|
-
export * from './reciple/classes/builders/MessageCommandOptionBuilder';
|
|
7
|
-
export * from './reciple/classes/builders/SlashCommandBuilder';
|
|
8
|
-
export * from './reciple/types/builders';
|
|
9
|
-
export * from './reciple/types/commands';
|
|
10
|
-
export * from './reciple/types/paramOptions';
|
|
11
|
-
export * from './reciple/flags';
|
|
12
|
-
export * from './reciple/logger';
|
|
13
|
-
export * from './reciple/modules';
|
|
14
|
-
export * from './reciple/permissions';
|
|
15
|
-
export * from './reciple/registerApplicationCommands';
|
|
16
|
-
export * from './reciple/util';
|
|
17
|
-
export * from './reciple/version';
|
|
1
|
+
export * from './reciple/classes/CommandCooldownManager.js';
|
|
2
|
+
export * from './reciple/classes/MessageCommandOptionManager.js';
|
|
3
|
+
export * from './reciple/classes/RecipleClient.js';
|
|
4
|
+
export * from './reciple/classes/RecipleConfig.js';
|
|
5
|
+
export * from './reciple/classes/builders/MessageCommandBuilder.js';
|
|
6
|
+
export * from './reciple/classes/builders/MessageCommandOptionBuilder.js';
|
|
7
|
+
export * from './reciple/classes/builders/SlashCommandBuilder.js';
|
|
8
|
+
export * from './reciple/types/builders.js';
|
|
9
|
+
export * from './reciple/types/commands.js';
|
|
10
|
+
export * from './reciple/types/paramOptions.js';
|
|
11
|
+
export * from './reciple/flags.js';
|
|
12
|
+
export * from './reciple/logger.js';
|
|
13
|
+
export * from './reciple/modules.js';
|
|
14
|
+
export * from './reciple/permissions.js';
|
|
15
|
+
export * from './reciple/registerApplicationCommands.js';
|
|
16
|
+
export * from './reciple/util.js';
|
|
17
|
+
export * from './reciple/version.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { MessageCommandBuilder, validateMessageCommandOptions } from './builders/MessageCommandBuilder';
|
|
2
|
-
import { SlashCommandBuilder } from './builders/SlashCommandBuilder';
|
|
3
|
-
import { CommandBuilderType } from '../types/builders';
|
|
4
|
-
import { registerApplicationCommands } from '../registerApplicationCommands';
|
|
5
|
-
import { CommandHaltReason } from '../types/commands';
|
|
6
|
-
import { botHasExecutePermissions, userHasCommandPermissions } from '../permissions';
|
|
7
|
-
import { CommandCooldownManager } from './CommandCooldownManager';
|
|
8
|
-
import { MessageCommandOptionManager } from './MessageCommandOptionManager';
|
|
1
|
+
import { MessageCommandBuilder, validateMessageCommandOptions } from './builders/MessageCommandBuilder.js';
|
|
2
|
+
import { SlashCommandBuilder } from './builders/SlashCommandBuilder.js';
|
|
3
|
+
import { CommandBuilderType } from '../types/builders.js';
|
|
4
|
+
import { registerApplicationCommands } from '../registerApplicationCommands.js';
|
|
5
|
+
import { CommandHaltReason } from '../types/commands.js';
|
|
6
|
+
import { botHasExecutePermissions, userHasCommandPermissions } from '../permissions.js';
|
|
7
|
+
import { CommandCooldownManager } from './CommandCooldownManager.js';
|
|
8
|
+
import { MessageCommandOptionManager } from './MessageCommandOptionManager.js';
|
|
9
9
|
import { getCommand } from 'fallout-utility';
|
|
10
|
-
import { RecipleConfig } from './RecipleConfig';
|
|
11
|
-
import { getModules } from '../modules';
|
|
12
|
-
import { createLogger } from '../logger';
|
|
13
|
-
import { version } from '../version';
|
|
14
|
-
import { cwd } from '../flags';
|
|
10
|
+
import { RecipleConfig } from './RecipleConfig.js';
|
|
11
|
+
import { getModules } from '../modules.js';
|
|
12
|
+
import { createLogger } from '../logger.js';
|
|
13
|
+
import { version } from '../version.js';
|
|
14
|
+
import { cwd } from '../flags.js';
|
|
15
15
|
import path from 'path';
|
|
16
16
|
import { ChannelType, Client, normalizeArray } from 'discord.js';
|
|
17
17
|
export class RecipleClient extends Client {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, readFileSync, writeFileSync } from 'fs';
|
|
2
|
-
import { isSupportedVersion, version } from '../version';
|
|
2
|
+
import { isSupportedVersion, version } from '../version.js';
|
|
3
3
|
import { input, replaceAll } from 'fallout-utility';
|
|
4
|
-
import { cwd, token as __token } from '../flags';
|
|
4
|
+
import { cwd, token as __token } from '../flags.js';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import yaml from 'yaml';
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CommandBuilderType } from '../../types/builders';
|
|
1
|
+
import { CommandBuilderType } from '../../types/builders.js';
|
|
2
2
|
import { normalizeArray } from 'discord.js';
|
|
3
|
-
import { MessageCommandOptionManager } from '../MessageCommandOptionManager';
|
|
4
|
-
import { MessageCommandOptionBuilder } from './MessageCommandOptionBuilder';
|
|
3
|
+
import { MessageCommandOptionManager } from '../MessageCommandOptionManager.js';
|
|
4
|
+
import { MessageCommandOptionBuilder } from './MessageCommandOptionBuilder.js';
|
|
5
5
|
/**
|
|
6
6
|
* Reciple builder for message command
|
|
7
7
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CommandBuilderType } from '../../types/builders';
|
|
2
|
-
import { isClass } from '../../util';
|
|
1
|
+
import { CommandBuilderType } from '../../types/builders.js';
|
|
2
|
+
import { isClass } from '../../util.js';
|
|
3
3
|
import { normalizeArray, SlashCommandBuilder as DiscordJsSlashCommandBuilder, SlashCommandSubcommandBuilder, SlashCommandSubcommandGroupBuilder, SlashCommandBooleanOption, SlashCommandUserOption, SlashCommandChannelOption, SlashCommandRoleOption, SlashCommandAttachmentOption, SlashCommandMentionableOption, SlashCommandStringOption, SlashCommandIntegerOption, SlashCommandNumberOption, ApplicationCommandOptionType } from 'discord.js';
|
|
4
4
|
/**
|
|
5
5
|
* Reciple builder for slash command
|
package/bin/mjs/reciple/flags.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CommandBuilderType } from './types/builders';
|
|
2
|
-
import { MessageCommandBuilder } from './classes/builders/MessageCommandBuilder';
|
|
3
|
-
import { SlashCommandBuilder } from './classes/builders/SlashCommandBuilder';
|
|
1
|
+
import { CommandBuilderType } from './types/builders.js';
|
|
2
|
+
import { MessageCommandBuilder } from './classes/builders/MessageCommandBuilder.js';
|
|
3
|
+
import { SlashCommandBuilder } from './classes/builders/SlashCommandBuilder.js';
|
|
4
4
|
import { normalizeArray } from 'discord.js';
|
|
5
|
-
import { isSupportedVersion, version } from './version';
|
|
5
|
+
import { isSupportedVersion, version } from './version.js';
|
|
6
6
|
import { existsSync, mkdirSync, readdirSync } from 'fs';
|
|
7
7
|
import wildcard from 'wildcard-match';
|
|
8
|
-
import { cwd } from './flags';
|
|
8
|
+
import { cwd } from './flags.js';
|
|
9
9
|
import path from 'path';
|
|
10
10
|
/**
|
|
11
11
|
* Load modules from folder
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { normalizeArray } from 'discord.js';
|
|
2
|
-
import { SlashCommandBuilder } from './classes/builders/SlashCommandBuilder';
|
|
2
|
+
import { SlashCommandBuilder } from './classes/builders/SlashCommandBuilder.js';
|
|
3
3
|
/**
|
|
4
4
|
* Register application commands
|
|
5
5
|
* @param options Register application commands options
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reciple",
|
|
3
|
-
"version": "5.4.1-pre.
|
|
3
|
+
"version": "5.4.1-pre.5",
|
|
4
4
|
"license": "GPL-3.0",
|
|
5
5
|
"typings": "bin/types/index.d.ts",
|
|
6
6
|
"author": "FalloutStudios",
|
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
"homepage": "https://reciple.js.org",
|
|
9
9
|
"main": "./bin/cjs/index.js",
|
|
10
10
|
"module": "./bin/mjs/index.js",
|
|
11
|
-
"bin":
|
|
12
|
-
"reciple": "./bin/cjs/bin.js"
|
|
13
|
-
},
|
|
11
|
+
"bin": "./bin/cjs/bin.js",
|
|
14
12
|
"exports": {
|
|
15
13
|
"import": "./bin/mjs/index.js",
|
|
16
14
|
"require": "./bin/cjs/index.js"
|