UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

26 lines (25 loc) 1.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EventSubChannelSlowModerationEvent = void 0; const tslib_1 = require("tslib"); const common_1 = require("@twurple/common"); const EventSubChannelBaseModerationEvent_1 = require("./EventSubChannelBaseModerationEvent"); /** * An EventSub event representing a moderator enabling slow mode on a channel. */ let EventSubChannelSlowModerationEvent = class EventSubChannelSlowModerationEvent extends EventSubChannelBaseModerationEvent_1.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[common_1.rawDataSymbol].slow.wait_time_seconds; } }; exports.EventSubChannelSlowModerationEvent = EventSubChannelSlowModerationEvent; exports.EventSubChannelSlowModerationEvent = EventSubChannelSlowModerationEvent = tslib_1.__decorate([ (0, common_1.rtfm)('eventsub-base', 'EventSubChannelSlowModerationEvent', 'broadcasterId') ], EventSubChannelSlowModerationEvent);