UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

23 lines (22 loc) 914 B
import { __decorate } from "tslib"; import { rawDataSymbol, rtfm } from '@twurple/common'; import { EventSubChannelBaseModerationEvent } from "./EventSubChannelBaseModerationEvent.mjs"; /** * An EventSub event representing a moderator enabling slow mode on a channel. */ let EventSubChannelSlowModerationEvent = class EventSubChannelSlowModerationEvent extends EventSubChannelBaseModerationEvent { constructor() { super(...arguments); this.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 };