create-seedcord 0.3.2 → 0.3.3

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/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  </div>
7
7
 
8
8
  <div align="center">
9
- <h3>The whole Discord bot, wired and typed</h3>
9
+ <h3>The whole Discord bot, typed end to end</h3>
10
10
  <a href="https://seedcord.org">Website</a> ·
11
11
  <a href="https://guide.seedcord.org">Guide</a> ·
12
12
  <a href="https://docs.seedcord.org">Reference</a> ·
package/dist/index.mjs CHANGED
@@ -1922,7 +1922,7 @@ const chalk = createChalk();
1922
1922
  const chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
1923
1923
 
1924
1924
  //#endregion
1925
- //#region ../../packages/errors/dist/SeedcordError-BsqYDjQD.mjs
1925
+ //#region ../../packages/errors/dist/SeedcordError-BfC-202u.mjs
1926
1926
  /**
1927
1927
  * All Seedcord error codes.
1928
1928
  */
@@ -1995,6 +1995,8 @@ let SeedcordErrorCode = /* @__PURE__ */ function(SeedcordErrorCode) {
1995
1995
  SeedcordErrorCode[SeedcordErrorCode["CorePluginKeyHoldsGroup"] = 1216] = "CorePluginKeyHoldsGroup";
1996
1996
  /** A plugin key is empty, has an empty part, or carries more than one dot. */
1997
1997
  SeedcordErrorCode[SeedcordErrorCode["CorePluginKeyMalformed"] = 1217] = "CorePluginKeyMalformed";
1998
+ /** An attached plugin doesn't extend the `Plugin` class of the bot's `@seedcord/core`. */
1999
+ SeedcordErrorCode[SeedcordErrorCode["CorePluginFromOtherCore"] = 1218] = "CorePluginFromOtherCore";
1998
2000
  /** A command decorator attempted to re-register an existing command scope. */
1999
2001
  SeedcordErrorCode[SeedcordErrorCode["DecoratorCommandAlreadyRegistered"] = 1301] = "DecoratorCommandAlreadyRegistered";
2000
2002
  /** A global command decorator specified guild IDs, which is not allowed. */
@@ -2242,6 +2244,7 @@ const messages = {
2242
2244
  [1207]: (dir) => `${dir} could not be read.`,
2243
2245
  [1215]: (head, key) => `${paint.sky(head)} is already taken on this bot, so ${paint.sky(key)} cannot nest under it. Pick another group name.`,
2244
2246
  [1217]: (key, reason) => `${paint.sky(key)} ${reason} Write a group and a plugin name around one dot, like 'services.users'.`,
2247
+ [1218]: (plugin) => `${paint.sky(plugin)} doesn't extend the ${paint.bold("Plugin")} class your bot uses. That usually means two copies of ${paint.bold("@seedcord/core")} are installed. Update the plugin and your ${paint.bold("@seedcord")} packages to versions that need the same ${paint.bold("@seedcord/core")}. Your package manager can list each installed copy and the package that pulled it in.`,
2245
2248
  [1216]: (key) => `${paint.sky(key)} already holds a group of plugins. Attach this one under a name of its own.`,
2246
2249
  [1208]: (key) => `Plugin key "${key}" is a channel the framework logs on. Pick another key.`,
2247
2250
  [1209]: () => "The bot's application id resolves during startup. You read it before that. Read it inside a handler, inside a plugin's ready(), or after start() resolves.",
@@ -2465,7 +2468,7 @@ function isSeedcordError(error, type, code) {
2465
2468
 
2466
2469
  //#endregion
2467
2470
  //#region src/cli/banner.ts
2468
- function banner(version = "0.3.2") {
2471
+ function banner(version = "0.3.3") {
2469
2472
  const wordmark = `${paint.flesh.bold("seed")}${paint.rind.bold("cord")}${paint.mute(" create")}`;
2470
2473
  if (version === void 0) return wordmark;
2471
2474
  return `${wordmark}${paint.pith(` • v${version}`)}`;
@@ -3644,7 +3647,7 @@ function silentSteps() {
3644
3647
 
3645
3648
  //#endregion
3646
3649
  //#region src/cli/version.ts
3647
- const version = "0.3.2";
3650
+ const version = "0.3.3";
3648
3651
 
3649
3652
  //#endregion
3650
3653
  //#region src/cli/summary.ts