UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

20 lines (19 loc) 849 B
import { __decorate } from "tslib"; import { rawDataSymbol, rtfm } from '@twurple/common'; import { EventSubChannelBaseModerationEvent } from './EventSubChannelBaseModerationEvent.js'; /** * An EventSub event representing a moderator enabling slow mode on a channel. */ let EventSubChannelSlowModerationEvent = class EventSubChannelSlowModerationEvent extends EventSubChannelBaseModerationEvent { moderationAction = 'slow'; /** * The amount of time, in seconds, that users need to wait between sending messages. */ get waitTimeSeconds() { return this[rawDataSymbol].slow.wait_time_seconds; } }; EventSubChannelSlowModerationEvent = __decorate([ rtfm('eventsub-base', 'EventSubChannelSlowModerationEvent', 'broadcasterId') ], EventSubChannelSlowModerationEvent); export { EventSubChannelSlowModerationEvent };