vimcord 1.0.42 → 1.0.44
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/dist/index.cjs +4 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +4 -13
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2167,7 +2167,6 @@ declare class Vimcord<Ready extends boolean = boolean> extends Client<Ready> {
|
|
|
2167
2167
|
moduleLoaded(moduleName: string, count?: number, ignoredCount?: number): void;
|
|
2168
2168
|
commandExecuted(commandName: string, username: string, guildName?: string): void;
|
|
2169
2169
|
plugin(pluginName: string, action: string, details?: string): void;
|
|
2170
|
-
database(action: string, details?: string): void;
|
|
2171
2170
|
};
|
|
2172
2171
|
readonly error: VimcordErrorHandler;
|
|
2173
2172
|
constructor(options: ClientOptions, features?: VimcordFeatures, config?: PartialDeep<VimcordConfig>);
|
|
@@ -2268,7 +2267,6 @@ declare const clientLoggerFactory: (client: Vimcord) => Logger & {
|
|
|
2268
2267
|
moduleLoaded(moduleName: string, count?: number, ignoredCount?: number): void;
|
|
2269
2268
|
commandExecuted(commandName: string, username: string, guildName?: string): void;
|
|
2270
2269
|
plugin(pluginName: string, action: string, details?: string): void;
|
|
2271
|
-
database(action: string, details?: string): void;
|
|
2272
2270
|
};
|
|
2273
2271
|
|
|
2274
2272
|
declare const DEFAULT_MODULE_SUFFIXES: {
|
package/dist/index.d.ts
CHANGED
|
@@ -2167,7 +2167,6 @@ declare class Vimcord<Ready extends boolean = boolean> extends Client<Ready> {
|
|
|
2167
2167
|
moduleLoaded(moduleName: string, count?: number, ignoredCount?: number): void;
|
|
2168
2168
|
commandExecuted(commandName: string, username: string, guildName?: string): void;
|
|
2169
2169
|
plugin(pluginName: string, action: string, details?: string): void;
|
|
2170
|
-
database(action: string, details?: string): void;
|
|
2171
2170
|
};
|
|
2172
2171
|
readonly error: VimcordErrorHandler;
|
|
2173
2172
|
constructor(options: ClientOptions, features?: VimcordFeatures, config?: PartialDeep<VimcordConfig>);
|
|
@@ -2268,7 +2267,6 @@ declare const clientLoggerFactory: (client: Vimcord) => Logger & {
|
|
|
2268
2267
|
moduleLoaded(moduleName: string, count?: number, ignoredCount?: number): void;
|
|
2269
2268
|
commandExecuted(commandName: string, username: string, guildName?: string): void;
|
|
2270
2269
|
plugin(pluginName: string, action: string, details?: string): void;
|
|
2271
|
-
database(action: string, details?: string): void;
|
|
2272
2270
|
};
|
|
2273
2271
|
|
|
2274
2272
|
declare const DEFAULT_MODULE_SUFFIXES: {
|
package/dist/index.js
CHANGED
|
@@ -1693,7 +1693,7 @@ var VimcordErrorHandler = class {
|
|
|
1693
1693
|
import chalk2 from "chalk";
|
|
1694
1694
|
|
|
1695
1695
|
// package.json
|
|
1696
|
-
var version = "1.0.
|
|
1696
|
+
var version = "1.0.44";
|
|
1697
1697
|
|
|
1698
1698
|
// src/client/vimcord.logger.ts
|
|
1699
1699
|
var clientLoggerFactory = (client) => new Logger({ prefixEmoji: "\u26A1", prefix: `vimcord (i${client.clientId})` }).extend({
|
|
@@ -1755,15 +1755,6 @@ var clientLoggerFactory = (client) => new Logger({ prefixEmoji: "\u26A1", prefix
|
|
|
1755
1755
|
chalk2.white(action),
|
|
1756
1756
|
details ? chalk2.hex(this.colors.muted)(details) : ""
|
|
1757
1757
|
);
|
|
1758
|
-
},
|
|
1759
|
-
database(action, details) {
|
|
1760
|
-
console.log(
|
|
1761
|
-
this.formatTimestamp(),
|
|
1762
|
-
this.formatPrefix(),
|
|
1763
|
-
chalk2.hex("#FF6B9D")("\u{1F5C4}\uFE0F DATABASE"),
|
|
1764
|
-
chalk2.white(action),
|
|
1765
|
-
details ? chalk2.hex(this.colors.muted)(details) : ""
|
|
1766
|
-
);
|
|
1767
1758
|
}
|
|
1768
1759
|
});
|
|
1769
1760
|
|
|
@@ -2665,7 +2656,6 @@ var Vimcord = class _Vimcord extends Client2 {
|
|
|
2665
2656
|
this.configure("slashCommands", this.config.slashCommands);
|
|
2666
2657
|
this.configure("prefixCommands", this.config.prefixCommands);
|
|
2667
2658
|
this.configure("contextCommands", this.config.contextCommands);
|
|
2668
|
-
this.logger.clientBanner(this);
|
|
2669
2659
|
if (this.features.importModules) {
|
|
2670
2660
|
const importModules = this.features.importModules;
|
|
2671
2661
|
await Promise.all([
|
|
@@ -2756,7 +2746,7 @@ var Vimcord = class _Vimcord extends Client2 {
|
|
|
2756
2746
|
*/
|
|
2757
2747
|
async useDatabase(db) {
|
|
2758
2748
|
this.db = db;
|
|
2759
|
-
this.logger.
|
|
2749
|
+
this.logger.plugin("DATABASE", "Using", db.moduleName);
|
|
2760
2750
|
return this.db.connect();
|
|
2761
2751
|
}
|
|
2762
2752
|
/**
|
|
@@ -2796,6 +2786,7 @@ var Vimcord = class _Vimcord extends Client2 {
|
|
|
2796
2786
|
);
|
|
2797
2787
|
}
|
|
2798
2788
|
await this.build();
|
|
2789
|
+
this.logger.clientBanner(this);
|
|
2799
2790
|
try {
|
|
2800
2791
|
const stopLoader = this.logger.loader("Connecting to Discord...");
|
|
2801
2792
|
const loginResult = await $4.async.retry(() => super.login(token), {
|
|
@@ -2803,7 +2794,7 @@ var Vimcord = class _Vimcord extends Client2 {
|
|
|
2803
2794
|
delay: 1e3
|
|
2804
2795
|
});
|
|
2805
2796
|
stopLoader("Connected to Discord ");
|
|
2806
|
-
this
|
|
2797
|
+
this.logger.debug("Waiting for the client to be ready...");
|
|
2807
2798
|
if (typeof tokenOrPreHook === "function") {
|
|
2808
2799
|
await tokenOrPreHook(this);
|
|
2809
2800
|
} else {
|