@seedcord/gateway 0.7.3 → 0.7.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/README.md +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -13
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
<div align="center">
|
|
19
19
|
|
|
20
|
-
[](https://www.npmjs.com/package/@seedcord/gateway) [](https://nodejs.org) [](https://bun.com) [](LICENSE)
|
|
21
21
|
|
|
22
22
|
</div>
|
|
23
23
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1694,7 +1694,7 @@ export declare abstract class Subscriber<KeyOfSubscribers extends SubscriptionKe
|
|
|
1694
1694
|
*/
|
|
1695
1695
|
export declare abstract class WebhookLog<KeyOfSubscribers extends SubscriptionKey> extends WebhookLog$1<KeyOfSubscribers, Core> {}
|
|
1696
1696
|
//#endregion
|
|
1697
|
-
//#region src/
|
|
1697
|
+
//#region src/Plugin.d.ts
|
|
1698
1698
|
/**
|
|
1699
1699
|
* The options a gateway plugin declares, narrowed to the transport and runtime this base serves.
|
|
1700
1700
|
* A gateway connection is a websocket that needs a long-lived process.
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "reflect-metadata";
|
|
2
2
|
import { WinstonConsoleSink, WinstonFileSink, installNodeDefaults } from "@seedcord/logger/node";
|
|
3
|
-
import { EventMetadataKey, EventMiddlewareMetadataKey, GateNotice, GatedMetadataKey, HmrManager, InteractionMetadataKey, InteractionMiddlewareMetadataKey, MiddlewareRegistry, MissingPermissions, NoticeCard, PermissionNames, PublishDefault, accessorStore, areRoutes, asError, busLoggerOf, clearStore, decodeComponentRoute, deferFlags, eventResultFor, guardedAccessor, interactionMiddleware, interactionRoutesOf, isEmojiTuple, outcomeFor, pickNotice, queuedMsFor, reportDispatch, reportedWrite, resultFor, runAfter, runHandlerGates, sendFlags,
|
|
3
|
+
import { EventMetadataKey, EventMiddlewareMetadataKey, GateNotice, GatedMetadataKey, HmrManager, InteractionMetadataKey, InteractionMiddlewareMetadataKey, MiddlewareRegistry, MissingPermissions, NoticeCard, PermissionNames, PublishDefault, accessorStore, areRoutes, asError, bindBotColor, busLoggerOf, clearStore, decodeComponentRoute, deferFlags, eventResultFor, guardedAccessor, interactionMiddleware, interactionRoutesOf, isEmojiTuple, outcomeFor, pickNotice, queuedMsFor, reportDispatch, reportedWrite, resultFor, runAfter, runHandlerGates, sendFlags, slowGateMonitor } from "@seedcord/core/internal";
|
|
4
4
|
import { SeedcordErrorCode, paint } from "@seedcord/errors";
|
|
5
5
|
import { SeedcordError, SeedcordTypeError, validateDiscordToken } from "@seedcord/errors/internal";
|
|
6
6
|
import { ArraySourceBase, BaseHandler as BaseHandler$1, BaseReplySender, BuilderComponent, Bus, CursorSourceBase, CustomId, DispatchContext, Fault, InteractionKind, Notice, PaginatorBase, RepliableHandler as RepliableHandler$1, ResolvedEmoji, RowComponent, Silence, Subscriber as Subscriber$1, WebhookLog as WebhookLog$1, assertPermissions, defineGate } from "@seedcord/core";
|
|
@@ -1491,7 +1491,7 @@ var Subscriber = class extends Subscriber$1 {};
|
|
|
1491
1491
|
var WebhookLog = class extends WebhookLog$1 {};
|
|
1492
1492
|
|
|
1493
1493
|
//#endregion
|
|
1494
|
-
//#region src/
|
|
1494
|
+
//#region src/Plugin.ts
|
|
1495
1495
|
/**
|
|
1496
1496
|
* Base class for a gateway plugin, binding `this.core` to the gateway {@link Core}.
|
|
1497
1497
|
*
|
|
@@ -2612,7 +2612,7 @@ function initBot(bot) {
|
|
|
2612
2612
|
//#endregion
|
|
2613
2613
|
//#region src/version.ts
|
|
2614
2614
|
/** Package version */
|
|
2615
|
-
const version = "0.7.
|
|
2615
|
+
const version = "0.7.5";
|
|
2616
2616
|
|
|
2617
2617
|
//#endregion
|
|
2618
2618
|
//#region src/Seedcord.ts
|
|
@@ -2651,7 +2651,7 @@ var Seedcord = class Seedcord extends Pluggable {
|
|
|
2651
2651
|
super(new CoordinatedShutdown(config.lifecycle?.shutdownDeadline), new CoordinatedStartup());
|
|
2652
2652
|
this.config = config;
|
|
2653
2653
|
installNodeDefaults(config.logger);
|
|
2654
|
-
|
|
2654
|
+
bindBotColor(() => this.config.botColor);
|
|
2655
2655
|
this.hmrManager = new HmrManager();
|
|
2656
2656
|
this.hmrManager.init();
|
|
2657
2657
|
this.bus = new Bus(this);
|