Skip to content

@mastondzn/dank-twitch-irc / JoinRateLimiter

Class: JoinRateLimiter

Implements

Constructors

new JoinRateLimiter(client)

new JoinRateLimiter(client): JoinRateLimiter

Parameters

client: ChatClient

Returns

JoinRateLimiter

Source

src/mixins/ratelimiters/join.ts:11

Properties

client

private readonly client: ChatClient

Source

src/mixins/ratelimiters/join.ts:8


joinLimitsSemaphore

private readonly joinLimitsSemaphore: Sema

Source

src/mixins/ratelimiters/join.ts:9

Methods

acquire()

private acquire(): Promise<() => void>

Returns

Promise<() => void>

Source

src/mixins/ratelimiters/join.ts:85


applyToClient()

applyToClient(client): void

Parameters

client: ChatClient

Returns

void

Implementation of

ClientMixin.applyToClient

Source

src/mixins/ratelimiters/join.ts:19