seedcord 0.1.0 → 0.1.1

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
@@ -143,6 +143,20 @@ var BaseComponent = class BaseComponent2 {
143
143
  get instance() {
144
144
  return this._component;
145
145
  }
146
+ /**
147
+ * Builds a customId string for interactive components
148
+ *
149
+ * Creates customIds in the format "prefix:arg1-arg2-arg3" for buttons, modals, etc.
150
+ * Arguments are joined with hyphens and separated from prefix with a colon.
151
+ *
152
+ * @param prefix - The route prefix that handlers will match against
153
+ * @param args - Additional arguments to encode in the customId
154
+ * @returns Formatted customId string
155
+ */
156
+ buildCustomId(prefix, ...args) {
157
+ if (args.length === 0) return prefix;
158
+ return `${prefix}:${args.join("-")}`;
159
+ }
146
160
  };
147
161
  var BuilderComponent = class extends BaseComponent {
148
162
  static {
@@ -159,20 +173,6 @@ var BuilderComponent = class extends BaseComponent {
159
173
  get component() {
160
174
  return this.instance;
161
175
  }
162
- /**
163
- * Builds a customId string for interactive components
164
- *
165
- * Creates customIds in the format "prefix:arg1-arg2-arg3" for buttons, modals, etc.
166
- * Arguments are joined with hyphens and separated from prefix with a colon.
167
- *
168
- * @param prefix - The route prefix that handlers will match against
169
- * @param args - Additional arguments to encode in the customId
170
- * @returns Formatted customId string
171
- */
172
- buildCustomId(prefix, ...args) {
173
- if (args.length === 0) return prefix;
174
- return `${prefix}:${args.join("-")}`;
175
- }
176
176
  };
177
177
  var RowComponent = class extends BaseComponent {
178
178
  static {
@@ -1626,13 +1626,17 @@ var CoordinatedShutdown = class extends CoordinatedLifecycle {
1626
1626
  async executeTasksInPhase(phase, tasks) {
1627
1627
  const results = [];
1628
1628
  for (const task of tasks) {
1629
- results.push(await Promise.resolve().then(() => this.runTaskWithTimeout(phase, task)).then(() => ({
1630
- status: "fulfilled",
1631
- value: void 0
1632
- }), (reason) => ({
1633
- status: "rejected",
1634
- reason
1635
- })));
1629
+ results.push(await Promise.resolve().then(() => this.runTaskWithTimeout(phase, task)).then(
1630
+ () => ({
1631
+ status: "fulfilled",
1632
+ value: void 0
1633
+ }),
1634
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
1635
+ (reason) => ({
1636
+ status: "rejected",
1637
+ reason
1638
+ })
1639
+ ));
1636
1640
  }
1637
1641
  return results;
1638
1642
  }
@@ -2125,13 +2129,17 @@ var CoordinatedStartup = class extends CoordinatedLifecycle {
2125
2129
  async executeTasksInPhase(phase, tasks) {
2126
2130
  const results = [];
2127
2131
  for (const task of tasks) {
2128
- results.push(await Promise.resolve().then(() => this.runTaskWithTimeout(phase, task)).then(() => ({
2129
- status: "fulfilled",
2130
- value: void 0
2131
- }), (reason) => ({
2132
- status: "rejected",
2133
- reason
2134
- })));
2132
+ results.push(await Promise.resolve().then(() => this.runTaskWithTimeout(phase, task)).then(
2133
+ () => ({
2134
+ status: "fulfilled",
2135
+ value: void 0
2136
+ }),
2137
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
2138
+ (reason) => ({
2139
+ status: "rejected",
2140
+ reason
2141
+ })
2142
+ ));
2135
2143
  }
2136
2144
  return results;
2137
2145
  }