Shared configuration for message collectors and one-time await helpers.
Generic over K — the tuple of Conduit events to subscribe to.
The filter callback and collected payload type are automatically
derived as a union of all event payloads in K.
Example
// default — T is MessageRespondPayload sent.collect({ timeout:30_000 });
// custom — T is MessageReactPayload | UserCreatePayload sent.collect({ timeout:30_000, events: ["message:react", "user:create"] asconst, });
Shared configuration for message collectors and one-time await helpers.
Generic over
K— the tuple of Conduit events to subscribe to. Thefiltercallback and collected payload type are automatically derived as a union of all event payloads inK.Example