UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

29 lines 876 B
import { EventSubChannelBaseModerationEvent } from './EventSubChannelBaseModerationEvent'; import type { HelixUser } from '@twurple/api'; /** * An EventSub event representing a moderator banning a user on a channel. */ export declare class EventSubChannelBanModerationEvent extends EventSubChannelBaseModerationEvent { readonly moderationAction = "ban"; /** * The ID of the user being banned. */ get userId(): string; /** * The name of the user being banned. */ get userName(): string; /** * The display name of the user being banned. */ get userDisplayName(): string; /** * Gets more information about the user. */ getUser(): Promise<HelixUser | null>; /** * The reason given for the ban. */ get reason(): string; } //# sourceMappingURL=EventSubChannelBanModerationEvent.d.ts.map