Skip to content

@mastondzn/dank-twitch-irc / PrivmsgMessageRateLimiter

Class: PrivmsgMessageRateLimiter

Implements

Constructors

new PrivmsgMessageRateLimiter(client)

new PrivmsgMessageRateLimiter(client): PrivmsgMessageRateLimiter

Parameters

client: ChatClient

Returns

PrivmsgMessageRateLimiter

Source

src/mixins/ratelimiters/privmsg.ts:13

Properties

client

private readonly client: ChatClient

Source

src/mixins/ratelimiters/privmsg.ts:9


highPrivmsgSemaphore

private readonly highPrivmsgSemaphore: Sema

Source

src/mixins/ratelimiters/privmsg.ts:10


lowPrivmsgSemaphore

private readonly lowPrivmsgSemaphore: Sema

Source

src/mixins/ratelimiters/privmsg.ts:11

Methods

acquire()

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

Parameters

channelName: string

Returns

Promise<() => void>

Source

src/mixins/ratelimiters/privmsg.ts:49


applyToClient()

applyToClient(client): void

Parameters

client: ChatClient

Returns

void

Implementation of

ClientMixin.applyToClient

Source

src/mixins/ratelimiters/privmsg.ts:24