/
docs
/
packages
/
brokers
/
main
/
IBaseBroker%3AInterface
Search...
K
brokers
discord.js
brokers
builders
collection
core
formatters
next
proxy
rest
util
voice
ws
main
main
Classes
BaseRedisBroker
PubSubRedisBroker
RPCRedisBroker
Interfaces
BaseBrokerOptions
IBaseBroker
IPubSubBroker
IRPCBroker
RedisBrokerOptions
RPCRedisBrokerOptions
Types
ToEventMap
Variables
DefaultBrokerOptions
DefaultRedisBrokerOptions
DefaultRPCRedisBrokerOptions
version
IBaseBroker
export interface
IBaseBroker
<
TEvents
extends
{}>
export interface
IBaseBroker
<
TEvents
extends
{}>
Summary
No summary provided.
Type Parameters
Name
Constraints
Optional
Default
Description
TEvents
{}
No
None
Methods
subscribe(events)
:
Promise
<
void
>
Subscribes to the given events
Name
Type
Optional
Description
events
(keyof TEvents)[]
No
None
unsubscribe(events)
:
Promise
<
void
>
Unsubscribes from the given events
Name
Type
Optional
Description
events
(keyof TEvents)[]
No
None