vimcord 1.0.45 → 1.0.47

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 CHANGED
@@ -1787,7 +1787,7 @@ var VimcordErrorHandler = class {
1787
1787
  var import_chalk2 = __toESM(require("chalk"));
1788
1788
 
1789
1789
  // package.json
1790
- var version = "1.0.45";
1790
+ var version = "1.0.47";
1791
1791
 
1792
1792
  // src/client/vimcord.logger.ts
1793
1793
  var clientLoggerFactory = (client) => new Logger({ prefixEmoji: "\u26A1", prefix: `vimcord (i${client.clientId})` }).extend({
@@ -2765,6 +2765,7 @@ var Vimcord = class _Vimcord extends import_discord11.Client {
2765
2765
  importModules.contextCommands && this.importModules("contextCommands", importModules.contextCommands)
2766
2766
  ]);
2767
2767
  }
2768
+ this.logger.clientBanner(this);
2768
2769
  if (this.config.app.enableCLI) {
2769
2770
  VimcordCLI.setMode("on");
2770
2771
  }
@@ -2880,7 +2881,6 @@ var Vimcord = class _Vimcord extends import_discord11.Client {
2880
2881
  );
2881
2882
  }
2882
2883
  await this.build();
2883
- this.logger.clientBanner(this);
2884
2884
  try {
2885
2885
  const stopLoader = this.logger.loader("Connecting to Discord...");
2886
2886
  const loginResult = await import_qznt4.$.async.retry(() => super.login(token), {
@@ -3104,10 +3104,10 @@ var MongoSchemaBuilder = class _MongoSchemaBuilder {
3104
3104
  this.globalPlugins.push(plugin);
3105
3105
  }
3106
3106
  constructor(collection, definition, options = {}) {
3107
- const { instanceId = 0 } = options;
3107
+ const { instanceId = 0, ...schemaOptions } = options;
3108
3108
  this.instanceId = instanceId;
3109
3109
  this.collection = collection;
3110
- this.schema = new import_mongoose2.Schema(definition, { versionKey: false });
3110
+ this.schema = new import_mongoose2.Schema(definition, { versionKey: false, ...schemaOptions });
3111
3111
  this.logger = new Logger({
3112
3112
  prefixEmoji: "\u{1F96D}",
3113
3113
  prefix: `MongoSchema (i${instanceId}) [${collection}]`,