@twurple/eventsub-base
Version:
Base for the other Twurple EventSub packages
33 lines • 991 B
TypeScript
import { EventSubChannelBaseModerationEvent } from './EventSubChannelBaseModerationEvent';
import type { HelixUser } from '@twurple/api';
/**
* An EventSub event representing a moderator timing out a user on a channel.
*/
export declare class EventSubChannelTimeoutModerationEvent extends EventSubChannelBaseModerationEvent {
readonly moderationAction = "timeout";
/**
* The ID of the user being timed out.
*/
get userId(): string;
/**
* The name of the user being timed out.
*/
get userName(): string;
/**
* The display name of the user being timed out.
*/
get userDisplayName(): string;
/**
* Gets more information about the user.
*/
getUser(): Promise<HelixUser | null>;
/**
* The reason given for the timeout.
*/
get reason(): string;
/**
* The time at which the timeout ends.
*/
get expiryDate(): Date;
}
//# sourceMappingURL=EventSubChannelTimeoutModerationEvent.d.ts.map