You are reading the documentation for the
next
version of discord.js. Documentation for v13/v14+ has been moved to
old.discordjs.dev
/
docs
/
packages
/
brokers
/
main
/
BaseBrokerOptions%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
DefaultRPCRedisBrokerOptions
BaseBrokerOptions
export declare interface
BaseBrokerOptions
export declare interface
BaseBrokerOptions
Summary
Base options for a broker implementation
Properties
blockTimeout?
:
number
How long to block for messages when polling
decode?
:
(data: Buffer_2) => unknown
Function to use for decoding messages
encode?
:
(data: unknown) => Buffer_2
Function to use for encoding messages
maxChunk?
:
number
Max number of messages to poll at once
name?
:
string
Unique consumer name.
See Also
https://redis.io/commands/xreadgroup/