Repository navigation
Description
Introduction
@wolfstar/http-framework currently speaks to Discord exclusively through the interactions HTTP endpoint: a bot receives INTERACTION_CREATE payloads on a webhook and responds synchronously. That's a great fit for stateless, serverless-friendly deployments, but it means a bot built on the framework has no way to react to anything that only exists on the Gateway — MESSAGE_CREATE, presence/voice state updates, guild member events, raw moderation-relevant events, etc. Today the only paths forward are to bring in a second, unrelated framework (e.g. Carbon) just for the Gateway half, or to hand-roll a WebSocket client per project.
This was requested directly in wolfstar-project/stars-components#51, which asks for a package that:
- Provides Gateway connectivity "comparable to Carbon's architecture or the RFC outlined in discordjs/discord.js#11426"
- Supports both local (in-memory) and Redis-backed caching
- Is functionally on par with what Carbon and discord.js already offer
- Supports compressing cached data
This RFC proposes @wolfstar/plugin-gateway, exporting a GatewayClient that extends @wolfstar/http-framework's Client — not a separate object bridged in through a plugin hook. A bot built on GatewayClient keeps every interactions capability of the base Client (load(), listen(), the command/interaction-handler stores, Client.use()) for free, and gains Gateway connectivity, caching, and a set of ready-made Structures on top, in the spirit of the "mini discord.js" Client being prototyped upstream in discordjs/discord.js#10983. Crucially, and unlike raw Gateway dispatch handling, GatewayClient events hand consumers Structure instances (Message, User, Guild, …) rather than raw snake_case API JSON — the same direction discord.js#10983 and the @discordjs/structures package are taking upstream.
The caching half is intentionally split out into its own, more focused RFC — see the companion issue linked in the footnotes. GatewayClient's Managers only depend on the Cache interface defined there, not on any specific store implementation.
Design principles
- Extend, don't wrap.
GatewayClient extends Client. A bot that wants Gateway support constructs aGatewayClientinstead of aClientand otherwise writes exactly the code it already knows — command stores, interaction handlers,client.load(),client.listen()all keep working unmodified. - Events carry Structures, not raw payloads.
client.on('messageCreate', (message: Message) => …)gets aMessagewith typed getters (message.author,message.content, …), notclient.on(GatewayDispatchEvents.MessageCreate, (data: APIMessage) => …). Consumers shouldn't need to know the raw API shape to write a handler. - Gateway events are listener pieces too.
@wolfstar/http-frameworkalready has a file-basedListener/ListenerStorepiece system (loaded viaclient.load()) for everything else the framework emits. BecauseGatewayClient extends Client, that same piece loader should work for Gateway-sourced events without a second, parallel mechanism —@wolfstar/plugin-gatewayshipsEventGatewayListener, a thinListenersubclass, rather than inventing a separate listener API. - Don't reinvent sharding.
@discordjs/ws'sWebSocketManageralready solves reconnects, resumes, rate-limited identify, and shard orchestration correctly.GatewayClientwraps it rather than re-implementing it. - Cache is a seam, not a requirement.
GatewayClientaccepts any object satisfying theCacheinterface from the companion RFC. No cache, an in-memory cache, and a Redis-backed cache are all equally valid — Managers build Structures on top of whateverCachereturns.
Structures
Rather than inventing a parallel structure system, @wolfstar/plugin-gateway depends directly on @discordjs/structures for the base Structure<DataType> class: it already gives us data storage behind a kData symbol, in-place patching via [kPatch], cheap [kClone], and a DataTemplate mechanism to strip fields we never want to keep resident. wolfstar-specific concrete structures live in this package and extend it:
import { Structure, kData } from '@discordjs/structures';
import type { APIUser } from 'discord-api-types/v10';
export class User extends Structure<APIUser> {
public get id() {
return this[kData].id;
}
public get username() {
return this[kData].username;
}
public get discriminator() {
return this[kData].discriminator;
}
public displayAvatarURL(): string | undefined {
return this[kData].avatar
? `https://cdn.discordapp.com/avatars/${this.id}/${this[kData].avatar}.png`
: undefined;
}
}Managers
Each entity type gets a CachedManager, mirroring the createStructure pattern from discord.js#10983's ChannelManager:
import type { Snowflake } from 'discord-api-types/globals';
import type { Structure } from '@discordjs/structures';
import type { Cache, EntityCache } from '@wolfstar/plugin-cache'; // see companion RFC
export abstract class CachedManager<Value extends Structure<{ id: Snowflake }>, Raw = unknown> {
public constructor(protected readonly client: GatewayClient) {}
protected abstract entityCache(cache: Cache): EntityCache<Raw>;
protected abstract createStructure(data: Partial<Raw>): Value;
public async get(id: Snowflake): Promise<Value | undefined> {
const raw = await this.entityCache(this.client.cache).get(id);
return raw ? this.createStructure(raw) : undefined;
}
}
export class UserManager extends CachedManager<User, APIUser> {
protected override entityCache(cache: Cache) {
return cache.users;
}
protected override createStructure(data: Partial<APIUser>): User {
return new User(data);
}
}GatewayClient
import type { GatewayIntentBits } from 'discord-api-types/v10';
import { Client, type ClientOptions } from '@wolfstar/http-framework';
import type { Cache } from '@wolfstar/plugin-cache'; // see companion RFC
export interface GatewayClientOptions extends ClientOptions {
intents: GatewayIntentBits | number;
/** Explicit shard count/range, or "auto" to let the Gateway session-start-limit endpoint decide. */
shards?: number | number[] | 'auto';
/** Optional cache implementation; see the companion Cache RFC. Defaults to a no-op cache. */
cache?: Cache;
}
export class GatewayClient extends Client {
public readonly cache?: Cache;
public readonly users: UserManager;
public readonly guilds: GuildManager;
public readonly channels: ChannelManager;
public constructor(options: GatewayClientOptions);
/** Starts the WebSocketManager and connects all configured shards. */
public connect(): Promise<void>;
}On dispatch, GatewayClient feeds the raw payload to the relevant EntityCache first, then asks the corresponding Manager to build (or patch) the Structure before emitting it — reusing the same AsyncEventEmitter the base Client already uses for interaction events:
gateway.on(WebSocketShardEvents.Dispatch, async ({ data: payload }, shardId) => {
switch (payload.t) {
case GatewayDispatchEvents.MessageCreate: {
await this.cache?.messages.set(payload.d.id, payload.d);
this.emit('messageCreate', new Message(payload.d), shardId);
break;
}
// ...one case per supported dispatch, table-driven rather than hand-written per event
}
});import { GatewayClient } from '@wolfstar/plugin-gateway';
import { createInMemoryCache } from '@wolfstar/plugin-cache';
import { GatewayIntentBits } from 'discord-api-types/v10';
const client = new GatewayClient({
discordToken: process.env.DISCORD_TOKEN,
intents: GatewayIntentBits.Guilds | GatewayIntentBits.GuildMessages,
cache: createInMemoryCache(),
});
await client.load(); // inherited from Client: loads commands & interaction handlers, unchanged
client.on('messageCreate', (message) => {
console.log(`${message.author.username}: ${message.content}`);
});
await client.connect();
await client.listen({ port: 8_080 }); // interactions webhook still works, unchangedEventGatewayListener: file-based Gateway event pieces
@wolfstar/http-framework already loads Listener pieces from a listeners/ directory via client.load(), targeting an emitter (resolved either from a concrete Emitter or a container key, e.g. 'client') and an event name, with run(...) receiving whatever that event emits. Since GatewayClient extends Client, Gateway-derived events emitted with this.emit('messageCreate', …) land on the exact same emitter regular framework listeners already target — so @wolfstar/plugin-gateway doesn't need a second piece store, just a strongly-typed Listener subclass that pins emitter to the client and maps each event name to its Structure-typed arguments:
import { Listener, type Awaitable } from '@wolfstar/http-framework';
import type { Message, Guild, User } from './structures/index.js';
export interface GatewayEventMap {
messageCreate: [message: Message];
guildCreate: [guild: Guild];
userUpdate: [oldUser: User | null, newUser: User];
// ...one entry per dispatch this package builds a Structure + event for
}
export abstract class EventGatewayListener<Event extends keyof GatewayEventMap = keyof GatewayEventMap> extends Listener<
Listener.Options & { event: Event }
> {
public constructor(context: Listener.LoaderContext, options: { event: Event; once?: boolean }) {
super(context, { ...options, emitter: 'client' });
}
public abstract override run(...args: GatewayEventMap[Event]): Awaitable<unknown>;
}A consumer then gets exactly the same file-based, auto-discovered authoring experience as every other framework listener — client.load() picks these up for free, no separate registration call needed beyond enabling GatewayClient:
// listeners/log-messages.ts
import { EventGatewayListener } from '@wolfstar/plugin-gateway';
export class LogMessagesListener extends EventGatewayListener<'messageCreate'> {
public constructor(context: EventGatewayListener.LoaderContext) {
super(context, { event: 'messageCreate' });
}
public override run(message: Message) {
console.log(`${message.author.username}: ${message.content}`);
}
}RegisterAsGatewayListener: decorator-based registration
@wolfstar/plugin-subcommands-advanced (already in this repo) sets the precedent for this ecosystem: it ships RegisterAsSubcommand/RegisterAsSubcommandGroup, class decorators that let a piece skip writing a constructor entirely — the same trick @sapphire/decorators' ApplyOptions uses upstream in the wider Sapphire ecosystem (a ClassDecorator that wraps the target class's constructor to inject the given options into its super() call). @wolfstar/plugin-gateway should follow the same in-repo convention rather than pull in @sapphire/decorators as a new dependency — EventGatewayListener already needs event to be strongly typed against GatewayEventMap, which a generic ApplyOptions<T> can't give us without an explicit type argument at every call site anyway:
export function RegisterAsGatewayListener<Event extends keyof GatewayEventMap>(
event: Event,
options?: { once?: boolean },
): ClassDecorator {
return (target) =>
class extends (target as typeof EventGatewayListener) {
public constructor(context: Listener.LoaderContext) {
super(context, { event, ...options });
}
} as unknown as typeof target;
}// listeners/log-messages.ts
import { EventGatewayListener, RegisterAsGatewayListener } from '@wolfstar/plugin-gateway';
import type { Message } from '@wolfstar/plugin-gateway';
@RegisterAsGatewayListener('messageCreate')
export class LogMessagesListener extends EventGatewayListener<'messageCreate'> {
public override run(message: Message) {
console.log(`${message.author.username}: ${message.content}`);
}
}Both forms stay supported — the decorator is sugar over the constructor-based form above, not a replacement for it, exactly like ApplyOptions/RegisterAsSubcommand are sugar over calling super() by hand in their own ecosystems.
Problems
- You opt in at construction time, not at runtime. Because
GatewayClient extends Clientrather than composing one, an existing bot already instantiated asnew Client()can't gain Gateway support later without switching its constructor call tonew GatewayClient(). A composition-based design (aGatewayPluginbridged in viaClient.use()) would avoid that, at the cost of the Managers needing to reach into an externalClientinstance instead ofthis. This RFC picks subclassing for the tighter integration and the more directthis.cache/this.usersaccess patterns shown above — but it's a real trade-off, not a free lunch, and is the opposite of what discord.js#10983 chose upstream (it composes aprotected core: CoreClientrather than extending). Given@wolfstar/http-frameworkonly has oneClientconcept to begin with (unlike discord.js's several historical Client-shaped things), extension seems like the better fit here, but this deserves explicit sign-off before implementation. - Table-driven dispatch → Structure construction doesn't scale as hand-written code. The
switchsketched above needs to become a generated or declaratively-defined mapping fromGatewayDispatchEventsto{ entityCache, createStructure, eventName }rather than one case per event written by hand — and that same table is whatGatewayEventMap(forEventGatewayListener) needs to stay in sync with. emitter: 'client'resolution.Listener.Options.emittercan be a container-key string resolved against@sapphire/pieces'scontainer. We need to confirm the baseClientalready registers itself under that'client'key on construction (soEventGatewayListener"just works" for anyGatewayClientinstance without extra wiring), rather than assuming it and finding out otherwise during implementation.RegisterAsGatewayListener's exact mechanism needs to matchRegisterAsSubcommand's, not just rhyme with it. The sketch above (subclassing and overriding the constructor) is the standard way to implement this kind of decorator without a dependency on@sapphire/decorators, but@wolfstar/plugin-subcommands-advancedalready solved this exact problem once in this repo —RegisterAsGatewayListenershould be implemented the same wayRegisterAsSubcommandis, not just aim for the same developer experience, so the two don't drift into two different decorator idioms for the same framework.- Structure coverage.
@discordjs/structuresis itself still pre-1.0 and only covers a subset of entities upstream. We need to decide whether@wolfstar/plugin-gatewayonly ships Structures for what it actually needs (User,Guild,Channel,Message, …) and falls back to raw API types for anything else, at least for v1. - Single source of truth across interactions and Gateway. Since
GatewayClient extends Client, an interaction payload'smember/userfields and a Gateway-cachedUserneed to resolve to consistent data. Do interaction handlers get upgraded to also read throughclient.users, or do they keep working against the raw interaction payload as today? Needs a decision so we don't end up with two divergent "current user state" views on the same object. - Naming.
GatewayClientvs. something closer to the upstream PR's naming (ClientGateway, or nesting it asClient.Gateway) is a bikeshed worth having explicitly rather than silently picking one. - Interaction double-delivery. A bot that keeps its HTTP interactions endpoint and enables Gateway intents will, for some interaction types, also receive
INTERACTION_CREATEover the Gateway.GatewayClientlikely needs to dropINTERACTION_CREATEdispatches unconditionally rather than attempt de-duplication, but this needs confirming against actual Gateway behavior for interactions-endpoint apps. - Process model mismatch.
@wolfstar/http-frameworkis designed to be comfortable in short-lived/serverless HTTP handlers; a Gateway connection is inherently long-lived and stateful.GatewayClienteffectively requires a persistent-process deployment mode, a meaningfully different operational story from the rest of the framework. Does@wolfstar/plugin-gatewaybelong in this repository, or should it (and its cache companion) live in the stars-components monorepo next to@wolfstar/http-frameworkitself? Worth resolving before implementation starts. - Multi-process sharding.
@discordjs/ws'sWebSocketManagersupports pluggableIShardingStrategyimplementations for multi-process setups, but defaults to single-process. Proposing v1 only supports single-process sharding (matches most self-hosted wolfstar deployments), leaving multi-process as a follow-up.
Alternatives considered
As noted in stars-components#51, the alternatives are depending on Carbon directly, or maintaining a fully custom in-house Gateway client. Both were rejected for the same reason this RFC leans on @discordjs/ws and @discordjs/structures: Gateway session/resume/rate-limit handling and Discord entity modeling are fiddly to get right, already exist, and aren't where @wolfstar/http-framework should be spending its maintenance budget. A composition-based design (a plugin bridged onto an existing Client via lifecycle hooks, with a fully standalone Gateway-only client alongside it) was drafted for an earlier revision of this RFC and rejected in favor of the single GatewayClient extends Client shape above — see the "Problems" section for the trade-off.
Footnotes
- Original request: request: add gateway package stars-components#51
- Style/prior art for this RFC format: discordjs/discord.js#11426 — RFC: Async Caching Layer & Simpler Manager Pattern for
@discordjs/next - Prior art for a composed REST+Gateway+Cache
Client,Structure/Manager/createStructurepattern: discordjs/discord.js#10983 - Structure base class this proposal depends on directly:
@discordjs/structures - Gateway primitive this proposal wraps:
@discordjs/ws @wolfstar/http-framework's existingClient/plugin system this RFC builds on:Client,Plugin,Client.use()inpackages/http-framework/src/lib- In-repo precedent for
RegisterAsGatewayListener:@wolfstar/plugin-subcommands-advanced'sRegisterAsSubcommand/RegisterAsSubcommandGroupdecorators - External prior art for the same decorator technique:
@sapphire/decorators'ApplyOptions - Companion RFC for the cache interface referenced above: RFC: Pluggable cache layer for
@wolfstar/plugin-gateway(Cache,EntityCache,CachedManager) #55
Addendum: upstream review and implementation contract (September 2026)
The comments on discord.js#11426 support raw cache storage and Manager-owned Structure construction, while highlighting requirements that the sketch above leaves open. The companion cache RFC #55 owns storage; this issue owns dispatch and event semantics.
- A cache miss must not silently suppress a Gateway event. Some delete dispatches contain only IDs. Define partial Structures or a documented raw fallback, make absent fields explicit in types, and specify how consumers fetch missing data. See upstream partials discussion and presence events after restart.
- Separate cache-only lookup from REST fallback. Add an async fetch(id, { force?, cache? }) path where an endpoint exists, as proposed in #11426. State which entities cannot be fetched and ensure a no-op cache still works.
- Preserve event order with async stores. Awaiting cache writes before emitting may reorder overlapping dispatch callbacks. Serialize within each guild/shard partition while allowing unrelated guilds to proceed independently. Surface queue depth, latency, timeout and failure. Upstream raised the interaction deadline concern.
- Define old/new Structure semantics. Capture the old raw snapshot, merge a partial update without dropping fields, persist, then construct independent old and new Structures. State that a previously returned instance is not guaranteed to mutate. Upstream identity discussion.
- Define contextual keys for members, voice states and reactions, and decide whether nested message author data is embedded or referenced. Upstream key discussion. Reconcile guild cache state after reconnect/resume; discord.js#11546 reports stale guilds after disconnection.
- Await dispatch processing and surface cache failures through an error event or configured handler. Specify whether failure emits uncached data, retries, or stops the affected partition; coordinate this policy with RFC: Pluggable cache layer for
@wolfstar/plugin-gateway(Cache,EntityCache,CachedManager) #55.
Suggested first implementation slice
- Support message create/update/delete, user update and guild create/delete with documented partial semantics; expose raw dispatch for unsupported structures.
- Verify inherited client-emitter resolution and the existing decorator implementation before treating either code sketch above as a guaranteed API.
- Test order with memory and delayed async stores, cache miss, remote failure, partial update, reconnect reconciliation and simultaneous HTTP interactions.
These are proposed acceptance criteria, not claims that upstream has settled its RFC.
Status and roadmap (updated 2026-09-25, after #112)
Implementation: #92 (@wolfstar/plugin-cache, see #55) and #93 (@wolfstar/plugin-gateway, stacked on #92). The RFC text above is kept as written; this section records what was decided while building it and what is still open. Each remaining phase below is meant to land as its own small or medium PR stacked on #93.
Decisions taken on the problems above
- Extend vs compose:
GatewayClient extends Client, name kept. The baseClientsetscontainer.client = thisin its constructor, soemitter: 'client'works forEventGatewayListenerwith no extra wiring. - Table-driven dispatch: a single declarative
DispatchHandlerstable maps each dispatch to{ event, before?, build }, type-checked againstGatewayEventMap. Dispatches without an entry still go to the cache and to arawevent. - Decorator:
RegisterAsGatewayListenercopies the constructor-wrapping mechanism ofRegisterAsSubcommand, plus aonceoption. - Interaction double-delivery:
INTERACTION_CREATEis dropped unconditionally (it still shows up inraw). - Structures: they extend
@discordjs/structures'Structure. The package does not exportkData,kPatchorkClone, but creates them withSymbol.for("djs.structures.*"), so we get the same symbols from the global registry. Bitfields come from@discordjs/structurestoo. ItsBitField.resolvereturns number enum values asnumberand then fails mixing them withbigintbits, so every flags bitfield overridesresolve. Worth an upstream issue. - Layout: mirrors discord.js's
@discordjs/nextprototype:GatewayClient.ts,managers/,structures/withmixins/,util/. Channels get one class per type composed withMixin(), picked by acreateChannel()factory. - Managers:
users,guilds,channels(falls back to threads),threads,messages,members,roles.getreads the cache only,fetchfalls back to REST and caches,refreshalways hits REST. - Relations resolve through the cache. Every API payload goes through the manager's
_add(discord.js'sCachedManager#_add, asynchronous because the cache can be Redis), and structures get their relations from the cache when a manager builds them:message.author,message.guild,channel.guild,member.user, ... (feat: resolve gateway structure relations through the cache with _add #102, feat: resolve the guild of gateway structures from the cache #103). Structures still never hold the client. Relations discord.js reads from its cache but that need a lookup here (permissions, parents, owners) arefetch*methods. - Options:
shardCount/shardIdsfollow@discordjs/wsinstead ofshards: number | number[] | 'auto'.@discordjs/wsand@discordjs/restare re-exported as@wolfstar/plugin-gateway/wsand/rest.
Addendum criteria: where we are
- A cache miss never suppresses an event. Update events get the previous state or
null; delete events get the cached entity ornullplus the raw dispatch data, which always carries the IDs. - Cache-only lookup is separate from REST fallback, and a client with no cache works. Managers'
fetchtakes{ force, cache }after the IDs, as proposed in #11426;refreshisfetchwithforce: true(feat: partition gateway dispatches per guild and harden the pipeline #95). - Event order is preserved per guild (or direct message channel) partition, and different guilds run concurrently. Guild-less dispatches (
READY,USER_UPDATE) are barriers for their shard.client.queueStatsexposes the pending work, and a dispatch still running afterdispatchTimeoutis reported as aDispatchTimeoutError(feat: partition gateway dispatches per guild and harden the pipeline #95). Latency is not exposed as a metric; whether it belongs in the client or in a logger/metrics plugin is still open. - Old/new semantics: the old raw snapshot is read before the dispatch is applied, partial updates are merged in the cache, and every event gets fresh, independent structures. Previously returned instances are never mutated.
- [~] Contextual keys for members, voice states, roles, threads, messages. Message authors are embedded in the message and also upserted into
users. Reactions and poll votes are counted into the cached message (feat: count reactions and poll votes in the cache and emit their gateway events #104). OnREADY, the cached guilds of that shard whichREADYno longer lists are dropped and emitted asguildDelete, best effort (feat: partition gateway dispatches per guild and harden the pipeline #95). - Dispatch processing is awaited and cache failures are emitted as
error(or logged when nobody listens). ThecacheFailureoption picks between dropping the event ("skip", default) and emitting it from the payload ("emitUncached").READYis always emitted (feat: partition gateway dispatches per guild and harden the pipeline #95). - Tests: order with a delayed async store, per-guild concurrency, cache miss, cache failure under both policies, timeout, partial member update,
READYreconciliation, the same manager scenarios against memory and Redis (feat: make plugin-cache Redis writes atomic and reads fail loudly #94, feat: partition gateway dispatches per guild and harden the pipeline #95). Missing: simultaneous HTTP interactions.
Open questions
@discordjs/structuresis only published asdevsnapshots and requires Node.js>=24.17, while this package declares>=20. Raiseengines, or document it?- Interaction handlers still read the raw interaction payload rather than
client.users& co. - Does the package belong here or in stars-components (process model)?
Phases
- ✅ Cache package (feat: add @wolfstar/plugin-cache, a storage-agnostic entity cache #92, RFC: Pluggable cache layer for
@wolfstar/plugin-gateway(Cache,EntityCache,CachedManager) #55). - ✅
GatewayClient, dispatch table, first managers, channel classes and mixins, listener and decorator (feat: add @wolfstar/plugin-gateway with GatewayClient #93). - 🔄 Structures and bitfields on top of
@discordjs/structures, raw-data events (typingStart,channelPinsUpdate,webhooksUpdate,voiceServerUpdate). - 🔄 Dispatch hardening (this issue's addendum): per-guild partitioned queue, timeout and stats, configurable cache-failure policy,
fetch(id, { force, cache }),READYreconciliation (feat: partition gateway dispatches per guild and harden the pipeline #95), store side in feat: make plugin-cache Redis writes atomic and reads fail loudly #94. Left: a test with concurrent HTTP interactions, and the latency metric question. - 🔄 Users, members and roles to discord.js parity:
ClientUser(presence),GuildMemberRoleManager, role CRUD, permission computation (feat: bring gateway users, members and roles to discord.js parity #97). - 🔄 Guild to parity (minus moderation), emoji, sticker and invite managers (feat: bring gateway guilds, emojis, stickers and invites to discord.js parity #98).
- 🔄 Messages: attachments, embeds, mentions, reactions, polls (feat: bring gateway messages, reactions and polls to discord.js parity #101); reaction and poll vote events, counted in the cache (feat: count reactions and poll votes in the cache and emit their gateway events #104). In between:
_addand relations resolved from the cache (feat: resolve gateway structure relations through the cache with _add #102),guildon every guild structure (feat: resolve the guild of gateway structures from the cache #103). - 🔄 Channel REST: edit, permission overwrites,
permissionsFor,GuildChannelManager(feat: bring gateway channels and permission overwrites to discord.js parity #105); webhooks (feat: add gateway webhooks #106). - 🔄 Threads: thread members, channel thread managers, forum posts, their events (feat: bring gateway threads to discord.js parity #107).
- 🔄 Voice states and presences, with their managers and events (feat: add gateway voice states and presences #108).
- 🔄 Moderation: bans, audit logs, auto moderation (feat: add gateway bans, audit logs, and auto moderation #109). Scheduled events, stage instances, soundboard (feat: add gateway scheduled events, stage instances, and soundboard sounds #110). Integrations, templates, welcome screen, widget, onboarding (feat: add gateway integrations, templates, welcome screens, widgets, and onboarding #111). Multi-process sharding in the separate
@wolfstar/plugin-sharderpackage (feat: add @wolfstar/plugin-sharder, implementing the discord.js sharder RFC #112), after the discord.js sharder RFC.
Activity
feat(plugin-gateway): build structures and bitfields on @discordjs/st…
feat(plugin-gateway): add GatewayClient with gateway events and managers
feat(plugin-gateway): build structures and bitfields on @discordjs/st…